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

Method constructor

src/openlayers/overlay/graphic/Graphic.js:23–30  ·  view source on GitHub ↗
(geometry, attributes)

Source from the content-addressed store, hash-verified

21export class Graphic extends BaseObject {
22
23 constructor(geometry, attributes) {
24 super();
25 if (geometry instanceof Geometry) {
26 this.geometry_ = geometry;
27 }
28 this.attributes = attributes;
29 this.setStyle();
30 }
31
32 /**
33 * @function OverlayGraphic.prototype.clone

Callers

nothing calls this directly

Calls 1

setStyleMethod · 0.95

Tested by

no test coverage detected