Maps SDK for Web

Class L.MapUtils

Methods

findLayersByName(layerName, map): Array

This method looks over all layers in the map instance and returns an array of matching layers. If layers are not found, returns empty array.

Parameters
Name Description Required Type/Values Default
layerName Name of the layers you are looking for Yes String None
map Map instance Yes Map None
Returns

Returns an array of matching layers, if no element was found, returns empty array.