MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / _shouldLoadBaseLayer

Method _shouldLoadBaseLayer

src/common/mapping/WebMapV2.js:256–265  ·  view source on GitHub ↗
(mapInfo, layerFilter)

Source from the content-addressed store, hash-verified

254 }
255
256 _shouldLoadBaseLayer(mapInfo, layerFilter) {
257 const baseLayer = mapInfo.baseLayer;
258 if (!baseLayer) {
259 return false;
260 }
261 if (typeof layerFilter === 'function') {
262 return layerFilter(baseLayer);
263 }
264 return true;
265 }
266
267 async _getScales(mapInfo) {
268 const baseLayerInfo = mapInfo.baseLayer;

Callers 2

_handleLayerInfoMethod · 0.95
_setExpectLayerLenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected