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

Method constructor

src/mapboxgl/overlay/graphic/Graphic.js:30–35  ·  view source on GitHub ↗
(lngLat, style, attributes)

Source from the content-addressed store, hash-verified

28 */
29export class Graphic {
30 constructor(lngLat, style, attributes) {
31
32 this.lngLat = Util.isArray(lngLat) ? {lng: lngLat[0], lat: lngLat[1]} : lngLat;
33 this.style = Util.extend({}, style);
34 this.attributes = attributes;
35 }
36 /**
37 * @function Graphic.prototype.getId
38 * @description 获取当前 ID。

Callers

nothing calls this directly

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected