Skip to content

Commit

Permalink
Merge branch 'feat/custom-icon'
Browse files Browse the repository at this point in the history
* feat/custom-icon:
  improve(docs): Updated documentation
  fix: Markers dissapearing on map bound change
  improve(TrackedObeject): Support for custom label
  feat(TrackedObject): Support for custom icon
  • Loading branch information
RaschidJFR committed Aug 15, 2019
2 parents 0d0f9b0 + 1b99333 commit d5193ae
Show file tree
Hide file tree
Showing 11 changed files with 725 additions and 102 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ Get Started with Google Maps Platform](https://developers.google.com/maps/gmp-ge
## 🧩 API
See full documentation at https://raschidjfr.github.io/ngx-googlemaps-tracking-view.
| Param | Type | Required? | Description |
| ---------- | -------------------------------------------------------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| data | `TrackedObject[]`| Required | Array of objects to draw on the map. They must implement the interface `TrackedObject`. |
| data | `TrackedObject[]`| Required | Array of objects to draw on the map. They must implement the interface `TrackedObject`: <br><br><ul><li>`color?: string` The marker's color.</li><li>`heading: number` Direction measured in degrees from true north.</li><li>`id: string` Unique identifier assigned to this object.</li><li>`icon?: google.maps.Icon | google.maps.Symbol` A google map's icon object.</li><li>`isOffline?: boolean` If `true`, the default marker (circle or triangle) will be outlined instead of solid.</li><li>`label?: label?: google.maps.MarkerLabel` A google maps label object to show near the marker.</li><li>`position: google.maps.LatLng` Scale for default markers. This is overwritten when `icon` is provided.</li><li>`scale?: number` The marker's color.</li><li>`speed?: number` If this value is not provided or is greater than 0 a triangle oriented towards`heading` will be shown as marker, otherwise, a circle (if `icon` is not set).</li></ul> |
| mapOptions | [MapOptions](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions) | Optional | GoogleMaps initialization options. |
| template | [TemplateRef](https://angular.io/api/core/TemplateRef) | Optional | An Angular template for rendering the infowindow. If non provided, a default infowindow template will be used. |
See [Full Documentation](https://raschidjfr.github.io/ngx-googlemaps-tracking-view)
### Example
```html
Expand Down Expand Up @@ -104,4 +104,4 @@ Raschid JF. Rafaelly
<[email protected]>
https://raschidjfr.dev
https://raschidjfr.dev
Loading

0 comments on commit d5193ae

Please sign in to comment.