M/impl/layer/Mapbox~Mapbox


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

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

new Mapbox(options, vendorOptions)

impl/ol/layer/Mapbox.js, line 32
Name Type Description
options Mx.parameters.LayerOptions

custom options for this layer

vendorOptions Object

vendor options for the base library

Members

module:M/impl/layer/Mapbox~Mapbox.ATTRIBUTION{ol.Attribution}

The attribution containing a link to the OpenStreetMap Copyright and License page.

Methods

addTo(map)

impl/ol/layer/Mapbox.js, line 111

This function sets the map object of the layer

Name Type Description
map M.impl.Map

destroy()

impl/ol/layer/Mapbox.js, line 366

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

equals()

impl/ol/layer/Mapbox.js, line 397

This function checks if an object is equals to this layer

getExtent()

impl/ol/layer/Mapbox.js, line 299

This function gets the envolved extent for this WMS

getMaxResolution()

impl/ol/layer/Mapbox.js, line 354

This function gets the max resolution for this WMS

getMinResolution()

impl/ol/layer/Mapbox.js, line 342

This function gets the min resolution for this WMS

recreateOlLayer()

impl/ol/layer/Mapbox.js, line 173

Removes and creates the ol3layer

setFacadeObj(obj)

impl/ol/layer/Mapbox.js, line 330

This function set facade class Mapbox

Name Type Description
obj object

Facade layer

setName()

impl/ol/layer/Mapbox.js, line 249

Sets the name of the layer

setResolutions(resolutions)

impl/ol/layer/Mapbox.js, line 262

This function sets the resolutions for this layer

Name Type Description
resolutions Array.<Number>

setTileLoadFunction()

impl/ol/layer/Mapbox.js, line 287

This function sets the tileLoadFunction

setURL()

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

Sets the url of the layer

setVisible()

impl/ol/layer/Mapbox.js, line 74

This function sets the visibility of this layer