Angular directive
custom-control source
Description
Build custom control and set to the map with position
Requires: map directive
Restrict To: Element
Parameters
| Name | Type | Description |
|---|---|---|
| Attr2Options | service |
convert html attribute to Google 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>