Class: elevationDirective directive:gmfElevation

gmf.elevationDirective

new elevationDirective()

Provide a directive that set a value each 500ms with the elevation under the mouse cursor position on the map. The value must come from the elevation service of a c2cgeoportal server. The server's URL must be defined as config value of the application.

Example:

 <span gmf-elevation
       gmf-elevation-active="elevationActive"
       gmf-elevation-elevation="elevationValue"
       gmf-elevation-layer="mainCtrl.elevationLayer"
       gmf-elevation-map="::mainCtrl.map">
       {{elevationValue | number:2}}m
 </span>
HTML attributes:
Name Type Description
gmf-elevation-active A boolean to set active or deactive the component.
gmf-elevation-elevation The value to set with the elevation value.
gmf-elevation-layer Elevation layer to use.
gmf-elevation-map The map.
Returns:
angular.Directive

Directive Definition Object.