5.20212.812
wijmo.angular2.chart.map Class WjGeoMapLayer Wijmo API Class

WjGeoMapLayer Class

Angular 2 component for the wijmo.chart.map.GeoMapLayer class.

The wj-geo-map-layer component must be contained in a wijmo.angular2.chart.map.WjFlexMap component.

Use the wj-geo-map-layer component to add GeoMapLayer controls to your Angular 2 applications. For details about Angular 2 markup syntax, see Angular 2 Markup.

The WjGeoMapLayer component is derived from the GeoMapLayer class and inherits all its properties, events and methods.

The wj-geo-map-layer component may contain a wijmo.angular2.chart.map.WjColorScale child component.

Heirarchy

Properties

asyncBindings

asyncBindings: boolean

Allows you to override the global WjOptions.asyncBindings setting for this specific component. See the WjOptions.WjOptions.asyncBindings property description for details.

colorScale

colorScale: ColorScale

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

initialized

initialized: EventEmitter<any>

This event is triggered after the component has been initialized by Angular, that is all bound properties have been assigned and child components (if any) have been initialized.

isInitialized

isInitialized: boolean

Indicates whether the component has been initialized by Angular. Changes its value from false to true right before triggering the initialized event.

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).

itemsSourceChangedNg

itemsSourceChangedNg: EventEmitter<any>

Angular (EventEmitter) version of the Wijmo itemsSourceChanged event for programmatic access. Use this event name if you want to subscribe to the Angular version of the event in code. In template bindings use the conventional itemsSourceChanged Wijmo event name.

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.

wjProperty

wjProperty: string

Gets or sets a name of a property that this component is assigned to. Default value is 'layers'.

Methods

created

  • created(): void
  • If you create a custom component inherited from a Wijmo component, you can override this method and perform necessary initializations that you usually do in a class constructor. This method is called in the last line of a Wijmo component constructor and allows you to not declare your custom component's constructor at all, thus preventing you from a necessity to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.

    Returns void

getAllFeatures

  • getAllFeatures(): any[]

getGeoBBox

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.