M/impl/layer/WMC~WMC


import WMC from 'M/impl/layer/WMC';

Main constructor of the class. Creates a WMC layer with parameters specified by the user

new WMC(options)

impl/ol/layer/WMC.js, line 28
Name Type Description
options Mx.parameters.LayerOptions

custom options for this layer

Methods

addTo(map)

impl/ol/layer/WMC.js, line 83

This function sets the map object of the layer

Name Type Description
map M.impl.Map

calculateMaxExtent()

impl/ol/layer/WMC.js, line 236

This function gets the envolved extent for this WMC

destroy()

impl/ol/layer/WMC.js, line 260

This function destroys this layer, cleaning the HTML and unregistering all events

equals()

impl/ol/layer/WMC.js, line 276

This function checks if an object is equals to this layer

getLayers()

impl/ol/layer/WMC.js, line 248

This function gets layers loaded from this WMC

getMaxExtent()

impl/ol/layer/WMC.js, line 206

This function gets the envolved extent for this WMC

loadLayers()

impl/ol/layer/WMC.js, line 168

This function load all layers of the WMC and it adds them to the map

select()

impl/ol/layer/WMC.js, line 97

This function select this WMC layer and triggers the event to draw it

setFacadeObj(obj)

impl/ol/layer/WMC.js, line 194

This function set facade class vector

Name Type Description
obj object

Facade vector

unselect()

impl/ol/layer/WMC.js, line 142

This function unselect this WMC layer and triggers the event to remove it