Class: exportfeaturesDirective directive:ngeoExportfeatures

ngeo.exportfeaturesDirective

new exportfeaturesDirective()

Directive used to export vector features in different types of format. To configure which formats to use, define the ngeoExportFeatureFormats value, as such:

app.module.value('ngeoExportFeatureFormats', [
    ngeo.FeatureHelper.FormatType.KML,
    ngeo.FeatureHelper.FormatType.GPX
]);

Example:

<button
  ngeo-exportfeatures
  ngeo-exportfeatures-features="ctrl.features"
  class="btn btn-link">Export</button>
HTML attributes:
Name Type Description
ngeo-exportfeatures-features ol.Collection:.<ol.Feature:> The features to export
Returns:
angular.Directive

The directive specs.