Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeafletMap

The LeafletMap class is an implementation of Map.

example



var map = new LeafletMap(); map.create("map", { initialXMin: -88.679196, initialYMin: 24.326418, initialXMax: -79.57153, initialYMax: 30.892178 });

Hierarchy

  • LeafletMap

Implements

  • Map
  • Map
  • Map
  • Map

Index

Constructors

constructor

  • Returns LeafletMap

  • Returns LeafletMap

  • Returns LeafletMap

Properties

Private _coordinateChange

_coordinateChange: any

Private _graphicsLayer

_graphicsLayer: any

Private _layerProviders

_layerProviders: any = []

_layerSources

_layerSources: object

Type declaration

  • [key: string]: LeafletLayer

Private _layerSourcesChanged

_layerSourcesChanged: any

_layerSubscriptions

_layerSubscriptions: object

Type declaration

  • [key: string]: Disposable

Private _map

_map: any = null

Private _panSource

_panSource: any

Private _ready

_ready: any = Q.defer<void>()

Private _setCoordinateHandler

  • _setCoordinateHandler(): void
  • Returns void

Private _setPanHandlers

  • _setPanHandlers(): void
  • Returns void

Private _setZoomHandlers

  • _setZoomHandlers(): void
  • Returns void

Private _updateIndicator

_updateIndicator: any = null

Private _updateStack

_updateStack: any = []

Private _visualizerOverlays

_visualizerOverlays: any = []

Private _zoomSource

_zoomSource: any

coordinateChanged

  • get coordinateChanged(): Event<CoordinateChangeEventArgs>
  • Property coordinateChanged [[Event]].

    Returns Event<CoordinateChangeEventArgs>

currentState

  • get currentState(): MapViewInformation

Private isActiveLayer

  • isActiveLayer(layer: Layer): boolean
  • Parameters

    Returns boolean

    boolean

layerSourcesChanges

  • get layerSourcesChanges(): Event<MapLayerSourcesChanged>
  • Property layerSourcesChanges [[Event]].

    Returns Event<MapLayerSourcesChanged>

leafletMap

  • get leafletMap(): Map
  • Property leafletMap L.Map.

    Returns Map

pan

  • get pan(): Event<MapStateChangeEventArgs>
  • Property pan [[Event]].

    Returns Event<MapStateChangeEventArgs>

ready

zoom

  • get zoom(): Event<MapStateChangeEventArgs>
  • Property zoom [[Event]].

    Returns Event<MapStateChangeEventArgs>

Methods

addGraphic

  • addGraphic(graphic: MapGraphic): object
  • addGraphic(graphic: MapGraphic): object
  • addGraphic(graphic: MapGraphic): object
  • Parameters

    Returns object

    • dispose: function
        • (): any
        • Returns any

    • id: string
  • Parameters

    • graphic: MapGraphic

      [[Graphic]].

    Returns object

    • dispose: function
        • (): any
        • Returns any

    • id: string
  • Parameters

    • graphic: MapGraphic

      [[Graphic]].

    Returns object

    • dispose: function
        • (): any
        • Returns any

    • id: string

addLayer

  • addLayer(layer: LayerSource): void
  • addLayer(layer: LayerSource): void
  • addLayer(layer: LayerSource): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

clearGraphics

  • clearGraphics(): void
  • clearGraphics(): void
  • clearGraphics(): void
  • Returns void

  • Returns void

  • Returns void

clearVisualizers

  • clearVisualizers(): void
  • clearVisualizers(): void
  • clearVisualizers(): void
  • Returns void

  • Returns void

  • Returns void

create

  • create(id: string, options?: MapCreateOptions): void
  • create(id: string, options?: MapCreateOptions): void
  • create(id: string, options?: MapCreateOptions): void
  • Create map and initiate handlers when creation is complete.

    Parameters

    Returns void

  • Create map and initiate handlers when creation is complete.

    Parameters

    • id: string

      string identifier of map.

    • Optional options: MapCreateOptions

    Returns void

  • Create map and initiate handlers when creation is complete.

    Parameters

    • id: string

      string identifier of map.

    • Optional options: MapCreateOptions

    Returns void

hasLayer

  • hasLayer(layer: LayerSource): boolean
  • hasLayer(layer: LayerSource): boolean
  • hasLayer(layer: LayerSource): boolean
  • Parameters

    Returns boolean

    boolean

  • Parameters

    Returns boolean

    boolean

  • Parameters

    Returns boolean

    boolean

highlight

  • highlight(feature: Feature | GeometryObject, options?: LeafletGraphicOptions): Disposable
  • highlight(feature: Feature | GeometryObject, options?: LeafletGraphicOptions): Disposable
  • highlight(feature: Feature | GeometryObject, options?: LeafletGraphicOptions): Disposable
  • Parameters

    Returns Disposable

  • Parameters

    • feature: Feature | GeometryObject
    • Optional options: LeafletGraphicOptions

    Returns Disposable

  • Parameters

    • feature: Feature | GeometryObject
    • Optional options: LeafletGraphicOptions

    Returns Disposable

registerProvider

  • registerProvider(provider: LeafletMapLayerProvider): void
  • registerProvider(provider: LeafletMapLayerProvider): void
  • registerProvider(provider: LeafletMapLayerProvider): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

reloadGraphics

  • reloadGraphics(): void
  • reloadGraphics(): void
  • reloadGraphics(): void
  • Returns void

  • Returns void

  • Returns void

removeLayer

  • removeLayer(layer: LayerSource): void
  • removeLayer(layer: LayerSource): void
  • removeLayer(layer: LayerSource): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

removeVisualizerOverlay

  • removeVisualizerOverlay(overlay: any): void
  • removeVisualizerOverlay(overlay: any): void
  • removeVisualizerOverlay(overlay: any): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

resize

  • resize(): void
  • resize(): void
  • resize(): void
  • Invalidates the size of the map. Updates view if necessary.

    Returns void

  • Invalidates the size of the map. Updates view if necessary.

    Returns void

  • Invalidates the size of the map. Updates view if necessary.

    Returns void

selectGeometry

  • selectGeometry(geometry: GeometryObject): Disposable
  • selectGeometry(geometry: GeometryObject): Disposable
  • selectGeometry(geometry: GeometryObject): Disposable
  • Parameters

    Returns Disposable

  • Parameters

    Returns Disposable

  • Parameters

    Returns Disposable

setVisualizerOverlay

  • setVisualizerOverlay(overlay: any): void
  • setVisualizerOverlay(overlay: any): void
  • setVisualizerOverlay(overlay: any): void
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

showMeasurements

  • showMeasurements(areaUnit: string, lengthUnit: string): Disposable
  • showMeasurements(areaUnit: string, lengthUnit: string): Disposable
  • showMeasurements(areaUnit: string, lengthUnit: string): Disposable
  • Parameters

    • areaUnit: string

      as string.

    • lengthUnit: string

      as string.

    Returns Disposable

  • Parameters

    • areaUnit: string

      as string.

    • lengthUnit: string

      as string.

    Returns Disposable

  • Parameters

    • areaUnit: string

      as string.

    • lengthUnit: string

      as string.

    Returns Disposable

zoomToGeometry

  • zoomToGeometry(geometry: GeometryObject, padding?: MapZoomPadding): void
  • zoomToGeometry(geometry: GeometryObject, padding?: MapZoomPadding): void
  • zoomToGeometry(geometry: GeometryObject, padding?: MapZoomPadding): void
  • Parameters

    Returns void

  • Parameters

    • geometry: GeometryObject
    • Optional padding: MapZoomPadding

    Returns void

  • Parameters

    • geometry: GeometryObject
    • Optional padding: MapZoomPadding

    Returns void

Object literals

Private _selectedGraphicOptions

_selectedGraphicOptions: object

onEachFeature

  • onEachFeature(f: IFeature, layer: GeoJSON): void
  • Parameters

    Returns void

pointToLayer

  • Parameters

    Returns CircleMarker

style

  • style(): object
  • Returns object

    • color: string
    • dashArray: string
    • opacity: number
    • weight: number