[]
        
(Showing Draft Content)

GeoMapLayer Class

GeoMapLayer Class

Represents a map layer with geographical data.

Heirarchy

Constructors

constructor

  • Initializes a new instance of the GeoMapLayer class.

    Parameters

    • Optional options: any

      A JavaScript object containing initialization data for the layer.

    Returns GeoMapLayer

Properties

colorScale

colorScale: ColorScale

Gets or sets color scale used for fill layer's items.

itemFormatter

itemFormatter: Object

Gets or sets a item formatter for GeoJSON feature.

itemsSource

itemsSource: any

Gets or sets a data source for the layer.

Data source should be GeoJSON object(s).

map

map: FlexMap

Gets the parent map

style

style: any

Gets or sets the layer's style.

symbolSize

symbolSize: number

Gets or sets the symbol size for rendering GeoJSON points/multi-points.

url

url: string

Get or sets the data source url.

Methods

getAllFeatures

  • getAllFeatures(): any[]
  • Gets all GeoJSON features on the layer.

    Returns any[]

getGeoBBox

  • Gets the layer bounds in geo coordinates.

    Parameters

    Returns Rect

initialize

  • initialize(options: any): void
  • Initializes the series by copying the properties from a given object.

    Parameters

    • options: any

      JavaScript object containing initialization data for the series.

    Returns void

onItemsSourceChanged

render

  • render(e: IRenderEngine, t: SVGTransform, group: SVGGElement): any
  • Renders the layer.

    Parameters

    • e: IRenderEngine

      Render engine.

    • t: SVGTransform

      Svg transformation.

    • group: SVGGElement

      SVG group element for the layer.

    Returns any

Events

itemsSourceChanged

itemsSourceChanged: Event<MapLayerBase, EventArgs>

Occurs after the layer has been bound to a new items source.