(lngLat, style, attributes)
| 28 | */ |
| 29 | export 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。 |