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

Method setAttributes

src/mapboxgl/overlay/graphic/Graphic.js:98–100  ·  view source on GitHub ↗

* @function Graphic.prototype.setAttributes * @description 设置属性信息。 * @param {Object} [attributes] - 属性信息。

(attributes)

Source from the content-addressed store, hash-verified

96 * @param {Object} [attributes] - 属性信息。
97 */
98 setAttributes(attributes) {
99 this.attributes = Util.extend({}, this.attributes, attributes);
100 }
101
102 /**
103 * @function Graphic.prototype.getAttributes

Callers 11

creatGraphicLayerFunction · 0.45
GraphicSpec.jsFile · 0.45
GraphicSpec.jsFile · 0.45
creatGraphicLayerFunction · 0.45
GraphicSpec.jsFile · 0.45
MapExtendSpec.jsFile · 0.45
GraphicSpec.jsFile · 0.45
GraphicSpec.jsFile · 0.45

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected