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

Method setMapId

src/common/mapping/WebMapBase.js:576–591  ·  view source on GitHub ↗
(mapId, preserveMap = false)

Source from the content-addressed store, hash-verified

574 }
575
576 setMapId(mapId, preserveMap = false) {
577 if (typeof mapId === 'string' || typeof mapId === 'number') {
578 this.mapId = mapId;
579 this.webMapInfo = null;
580 } else if (mapId !== null && typeof mapId === 'object') {
581 this.webMapInfo = mapId;
582 this.mapId = '';
583 }
584 this.webMapService.setMapId(mapId);
585 if (!mapId) {
586 return;
587 }
588 setTimeout(() => {
589 this._initWebMap(!preserveMap);
590 }, 0);
591 }
592
593 getMapInfo(_taskID) {
594 this.webMapService

Callers 11

setStyleMethod · 0.95
WebMapV2Spec.jsFile · 0.45
WebMapSpec.jsFile · 0.45
callbackFunction · 0.45
WebMapV3Spec.jsFile · 0.45
WebMapV2Spec.jsFile · 0.45
WebMapSpec.jsFile · 0.45
callbackFunction · 0.45
WebMapV3Spec.jsFile · 0.45

Calls 1

_initWebMapMethod · 0.95

Tested by

no test coverage detected