new controlDirective()
Provides a directive that can be used to add a control to the map using a DOM element.
Example:
<div ngeo-control="ctrl.control" ngeo-control-map="ctrl.map"></div>
The expression passed to "ngeo-control" should evaluate to a control instance, and the expression passed to "ngeo-control-map" should evaluate to a map instance.
See our live example: ../examples/control.html
HTML attributes:
Name | Type | Description |
---|---|---|
ngeo-control-map |
ol.Map | The map. |
Returns:
angular.Directive
The directive specs.