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

LayerFactory

Extends:

ol/Observable~Observable → LayerFactory

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

Method Summary

Public Methods
public

createFeature(featureConf: FeatureConfig): ol.Feature

public

createLayer(optionsCopy: g4uLayerOptions): ol.layer.Layer | ol.Collection<ol.layer.Layer>

Creates a layer or a collection of layers from the config

public

setWMTSSourceFromCapabilities(layer: *, sourceOptions: *)

Private Methods
private
private
private
private
private

Public Constructors

public constructor(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap

Private Members

private map_: G4UMap source

Public Methods

public createFeature(featureConf: FeatureConfig): ol.Feature source

Params:

NameTypeAttributeDescription
featureConf FeatureConfig

Return:

ol.Feature

public createLayer(optionsCopy: g4uLayerOptions): ol.layer.Layer | ol.Collection<ol.layer.Layer> source

Creates a layer or a collection of layers from the config

Params:

NameTypeAttributeDescription
optionsCopy g4uLayerOptions

Return:

ol.layer.Layer | ol.Collection<ol.layer.Layer>

public setWMTSSourceFromCapabilities(layer: *, sourceOptions: *) source

Params:

NameTypeAttributeDescription
layer *
sourceOptions *

Private Methods

private configureLayerAvailability_(config: g4uLayerOptions): g4uLayerOptions source

Params:

NameTypeAttributeDescription
config g4uLayerOptions

Return:

g4uLayerOptions

private configureLayerSourceAttribution_(sourceConfig: SourceConfig): SourceConfig source

Params:

NameTypeAttributeDescription
sourceConfig SourceConfig

Return:

SourceConfig

private configureLayerSourceLoadingStrategy_(sourceConfig: SourceConfig): SourceConfig source

Params:

NameTypeAttributeDescription
sourceConfig SourceConfig

Return:

SourceConfig

private configureLayerTitle_(config: g4uLayerOptions): g4uLayerOptions source

Params:

NameTypeAttributeDescription
config g4uLayerOptions

Return:

g4uLayerOptions

private configureLayerVisibility_(config: g4uLayerOptions): g4uLayerOptions source

Params:

NameTypeAttributeDescription
config g4uLayerOptions

Return:

g4uLayerOptions