M/layer/OSM~OSM


import OSM from 'M/layer/OSM';

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

new OSM(userParameters, options, vendorOptions)

facade/js/layer/OSM.js, line 27
Name Type Description
userParameters string | Mx.parameters.WMS

parameters

options Mx.parameters.LayerOptions

provided by the user

vendorOptions Object

vendor options for the base library

Extends

  • M.Layer

Methods

equals()

facade/js/layer/OSM.js, line 121

This function checks if an object is equals to this layer

setTileLoadFunction(func)

facade/js/layer/OSM.js, line 110

This function sets the tileLoadFunction On the implementation

Name Type Description
func function

Function to override