(geometry, attributes)
| 21 | export 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 |