M/impl/layer/OSM~OSM


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

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

new OSM(options, vendorOptions)

impl/ol/layer/OSM.js, line 33
Name Type Description
options Mx.parameters.LayerOptions

custom options for this layer

vendorOptions Object

vendor options for the base library

Methods

addTo(map)

impl/ol/layer/OSM.js, line 114

This function sets the map object of the layer

Name Type Description
map M.impl.Map

destroy()

impl/ol/layer/OSM.js, line 280

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

equals()

impl/ol/layer/OSM.js, line 311

This function checks if an object is equals to this layer

getMaxResolution()

impl/ol/layer/OSM.js, line 268

This function gets the max resolution for this WMS

getMinResolution()

impl/ol/layer/OSM.js, line 256

This function gets the min resolution for this WMS

setFacadeObj(obj)

impl/ol/layer/OSM.js, line 237

This function set facade class OSM

Name Type Description
obj object

Facade layer

setResolutions(resolutions)

impl/ol/layer/OSM.js, line 175

This function sets the resolutions for this layer

Name Type Description
resolutions Array.<Number>

setTileLoadFunction()

impl/ol/layer/OSM.js, line 226

This function sets the tileLoadFunction

setVisible()

impl/ol/layer/OSM.js, line 77

This function sets the visibility of this layer