directive: custom-control

custom-control

custom-control(position, index)

Build custom control and set to the map with position

Requires: map directive

Restrict To: Element

Parameters:
Name Type Description
position String

position of this control i.e. TOP_RIGHT

index Number

index of the control

Source:
Requires:
  • module:Attr2Options
  • module:$compile
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>

Requires

  • module:Attr2Options
  • module:$compile