Package 📦 | @bespunky/angular-google-maps/overlays |
---|---|
Directive âš™ | <bs-google-maps-marker/> |
Wrapper 🧬 | GoogleMapsMarker |
Name for template reference variables: marker
Wrapper API | Directive API | Live Demo
Marker position can be set using any geometry matching BoundsLike
(see Geometry Types). The wrapper will automatically get the center of the element's bounding box and use it as the position.
You can now position markers on top of other elements (e.g. a polygon) by setting the element as the position:
<bs-google-maps-polygon .... #polygon="polygon"></bs-google-maps-polygon>
<bs-google-maps-marker [position]="polygon.wrapper"></bs-google-maps-marker>
Topic | Description |
---|---|
Geometry Types | Flexibility for geometries. |