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

Method addToMap

src/common/overlay/levelRenderer/Storage.js:414–423  ·  view source on GitHub ↗

* @function LevelRenderer.Storage.prototype.addToMap * @description 添加图形到 map。 * * @param {LevelRenderer.Shape} el - 图形。 * @return {LevelRenderer.Storage} this。

(el)

Source from the content-addressed store, hash-verified

412 * @return {LevelRenderer.Storage} this。
413 */
414 addToMap(el) {
415 if (el instanceof Group) {
416 el._storage = this;
417 }
418 el.modSelf();
419
420 this._elements[el.id] = el;
421
422 return this;
423 }
424
425 /**
426 * @function LevelRenderer.Storage.prototype.get

Callers 3

addRootMethod · 0.95
addChildMethod · 0.80
addChildrenToStorageMethod · 0.80

Calls 1

modSelfMethod · 0.45

Tested by

no test coverage detected