Home Reference Source
import {LayerConfigurator} from 'guide4you/src/configurators/LayerConfigurator.js'
public class | source

LayerConfigurator

This is part of the MapConfigurator class

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

Method Summary

Public Methods
public

configures the layers according to the layerConfig stored in the 'layerConfig' property stored in the map.

public
Private Methods
private

A function that checks if a layer id is setted and not a duplicate of another.

Public Constructors

public constructor(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap

Private Members

private layerFactory_: LayerFactory source

private map_: G4UMap source

Public Methods

public configureLayers() source

configures the layers according to the layerConfig stored in the 'layerConfig' property stored in the map. If the config changes this method is called automatically.

public getFactory(): LayerFactory source

Return:

LayerFactory

Private Methods

private configureLayerIsIdOk_(id: string | number): boolean source

A function that checks if a layer id is setted and not a duplicate of another. Throws an error if this is the case.

Params:

NameTypeAttributeDescription
id string | number

Return:

boolean