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

Method removeChild

src/common/overlay/levelRenderer/Group.js:161–175  ·  view source on GitHub ↗

* @function LevelRenderer.Group.prototype.removeChild * @description 移除子节点。 * @param {LevelRenderer.Shape} child - 需要移除的子节点图形。

(child)

Source from the content-addressed store, hash-verified

159 * @param {LevelRenderer.Shape} child - 需要移除的子节点图形。
160 */
161 removeChild(child) {
162 var idx = CommonUtil.indexOf(this._children, child);
163
164 this._children.splice(idx, 1);
165 child.parent = null;
166
167 if (this._storage) {
168
169 this._storage.delFromMap(child.id);
170
171 if (child instanceof Group) {
172 child.delChildrenFromStorage(this._storage);
173 }
174 }
175 }
176
177
178 /**

Callers 15

InitMapSpec.jsFile · 0.80
VideoMapSpec.jsFile · 0.80
WebMapV2Spec.jsFile · 0.80
WebMapSpec.jsFile · 0.80
WebMapV3Spec.jsFile · 0.80
WebMapV22Spec.jsFile · 0.80
LogoSpec.jsFile · 0.80
MapExtendSpec.jsFile · 0.80
DeckglLayerSpec.jsFile · 0.80
L7LayerSpec.jsFile · 0.80

Calls 3

indexOfMethod · 0.80
delFromMapMethod · 0.80

Tested by

no test coverage detected