Angular directive
marker source
Description
Draw a Google map marker on a map with given options and register events
+ + + + ++ Angular directive +
++ marker + source +
+-
+
Description
+Draw a Google map marker on a map with given options and register events
Requires: map directive
-Restrict To: Element
Attributes
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
position | String |
address, 'current', or [latitude, longitude] + Restrict To: Element + + +
+
Attributes+
Example
|
+ ||||||||||||||||||||||||||||||
<MarkerOption> | ++ String + | ++ + + + | +||||||||||||||||||||||||||||||
<MapEvent> | ++ String + | ++ + + + | +
Example
+Usage:
<map MAP_ATTRIBUTES>
<marker ANY_MARKER_OPTIONS ANY_MARKER_EVENTS"></MARKER>
</map>
Example:
<map center="[40.74, -74.18]">
- <marker position="[40.74, -74.18]" on-click="myfunc()"></div>
+ <marker position="[40.74, -74.18]" on-click="myfunc()"></marker>
</map>
<map center="the cn tower">
- <marker position="the cn tower" on-click="myfunc()"></div>
- </map>