Class: directive_ directive:gmfDrawprofileline

gmf.profile.module:drawLineComponent.directive_

new directive_()

Simple directive that can be put on any element. The directive listen on clicks events to allow/disallow to draw one line (and only one) on the map. Typically used to draw the line that will serve the gmf.Profile.

Example:

 <gmf-drawprofileline
   gmf-drawprofileline-active="mainCtrl.drawProfileActive"
   gmf-drawprofileline-map="mainCtrl.map"
   gmf-drawprofileline-line="mainCtrl.line"
 </gmf-drawprofileline>
HTML attributes:
Name Type Attributes Description
gmf-drawprofileline-map ol.Map The map.
gmf-drawprofileline-line ol.geom.LineString The variable to connect with the drawed line.
gmf-drawprofileline-active boolean <optional>
Active the component.
gmf-drawprofileline-style ol.style.Style <optional>
Optional style for the drawed line.
Returns:
angular.Directive

Directive Definition Object.