5.20231.904
wijmo.angular2.chart.map Class WjGeoGridLayer Wijmo API Class

WjGeoGridLayer Class

Angular 2 component for the {@link wijmo.chart.map.GeoGridLayer} class.

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

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

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

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

Heirarchy

  • GeoGridLayer
    • WjGeoGridLayer

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.

itemsSource

itemsSource: any

Gets or sets a data source for the layer.

Data source should be GeoJSON object(s).

itemsSourceChangePC

itemsSourceChangePC: EventEmitter<any>

This event is used to implement two-way binding to the itemsSource property. It's triggered when the property value changes, with the event argument holding the new property value. You can bind handlers to this event in templates using the itemsSourceChange event name.

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.

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

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

Events

itemsSourceChanged

itemsSourceChanged: Event<MapLayerBase, EventArgs>

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