Angular directive
custom-marker source
Description
Marker with html Requires: map directive Restrict To: Element
Parameters
| Name | Type | Description |
|---|---|---|
| Attr2Options | service |
convert html attribute to Google map api options |
| $timeout | service |
AngularJS $timeout |
Attributes
| Name | Type | Description |
|---|---|---|
| position | String |
required, position on map |
| z-index | Number |
optional |
| visible | Boolean |
optional |
Example
Example:
<map center="41.850033,-87.6500523" zoom="3">
<custom-marker position="41.850033,-87.6500523">
<div>
<b>Home</b>
</div>
</custom-marker>
</map>