MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getMainLayerFromCatalog

Function getMainLayerFromCatalog

src/common/mapping/utils/util.js:216–219  ·  view source on GitHub ↗
(layerParts, catalogId, layersOnMap)

Source from the content-addressed store, hash-verified

214}
215
216export function getMainLayerFromCatalog(layerParts, catalogId, layersOnMap) {
217 const renderLayers = getLayerCatalogRenderLayers(layerParts, catalogId, layersOnMap);
218 return layersOnMap.find(item => item.id === renderLayers[0]);
219}

Callers 2

_createLegendInfoMethod · 0.90
_generateLayersMethod · 0.90

Calls 2

findMethod · 0.45

Tested by

no test coverage detected