Angular directive
custom-control source
Build custom control and set to the map with position
Requires: map directive
Restrict To: Element
Dependencies:
| Name | Type | Description |
|---|---|---|
| Attr2Options | service | convert html attribute to Gogole map api options |
| $compile | service | AngularJS $compile service |
Attributes:
| Name | Type | Description |
|---|---|---|
| position | String | position of this control i.e. TOP_RIGHT |
| index | Number | index of the control |
Example
Example:
<map center="41.850033,-87.6500523" zoom="3">
<custom-control id="home" position="TOP_LEFT" index="1">
<div style="background-color: white;">
<b>Home</b>
</div>
</custom-control>
</map>