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

Function isSameRasterLayer

src/common/mapping/utils/util.js:185–191  ·  view source on GitHub ↗
(sourceInfo, compareSource)

Source from the content-addressed store, hash-verified

183}
184
185export function isSameRasterLayer(sourceInfo, compareSource) {
186 const { type, tiles } = sourceInfo;
187 if (type === 'raster') {
188 return type === compareSource.type && tiles && compareSource.tiles && isSameRasterUrl(tiles[0], compareSource.tiles[0]);
189 }
190 return false;
191}
192
193export function createAppreciableLayerId(layer) {
194 // 针对传入 layers

Callers 4

UtilSpec.jsFile · 0.90
_setUniqueIdMethod · 0.90
_isSameRasterLayerMethod · 0.90
_setUniqueIdMethod · 0.90

Calls 1

isSameRasterUrlFunction · 0.85

Tested by

no test coverage detected