Build custom control and set to the map with position
Requires: map directive
Restrict To: Element
Attributes:
Name | Type | Description |
---|---|---|
position |
String | position of this control i.e. TOP_RIGHT |
index |
Number | index of the control |
Dependencies:
- Attr2Options service
- $compile service
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>