Class: profileDirective directive:ngeoProfile

ngeo.profileDirective

new profileDirective(ngeoDebounce)

Provides a directive used to insert an elevation profile chart in the DOM.

Example:

 <div ngeo-profile="ctrl.profileData"
   ngeo-profile-options="ctrl.profileOptions"
   ngeo-profile-pois="ctrl.profilePois">
 </div>

Where "ctrl.profileOptions" is of type ngeox.profile.ProfileOptions; "ctrl.profileData" and "ctrl.profilePois" are arrays which will be processed by ngeox.profile.ElevationExtractor and ngeox.profile.PoiExtractor.

See our live example: ../examples/profile.html

HTML attributes:
Name Type Attributes Description
ngeo-profile <nullable>
The profile data.
ngeo-profile-options The options.
ngeo-profile-pois <nullable>
The data for POIs.
ngeo-profile-highlight Any property on the scope which evaluated value may correspond to distance from origin.
Returns:
angular.Directive

Directive Definition Object.