Hierarchy

  • Controller

Properties

element_: JQuery<HTMLElement>
featureHelper_: FeatureHelper
features: Collection<Feature<Geometry>>
formats_: string[]
id_: string
items_: JQuery<HTMLElement>[]
menu_: JQuery<HTMLElement>

Methods

  • Called when the element bound to this directive is clicked. Use the feature helper to export the feature(s) depending on the format(s) available(s). If there's only one, the call to the export method is direct, otherwise a drop-down menu is show to let the user choose the format of the export. Finally, if there's only one feature in the collection to export and there's more than one format set, some formats may not support the type of geometry. If that's the case, then disable each format item in the drop-down menu that doesn't support the type of geometry.

    Returns void

  • Called when a menu item is clicked. Export the features to the selected format.

    Parameters

    • format: string

      Format.

    • event: Event

      Event.

    Returns void

Generated using TypeDoc