* @function OverlayGraphic.prototype.clone * @description 克隆当前要素。 * @returns {OverlayGraphic} 克隆后的要素。
()
| 35 | * @returns {OverlayGraphic} 克隆后的要素。 |
| 36 | */ |
| 37 | clone() { |
| 38 | var clone = new Graphic(); |
| 39 | clone.setId(this.id); |
| 40 | clone.setGeometry(this.geometry_); |
| 41 | clone.setAttributes(this.attributes); |
| 42 | clone.setStyle(this.style_); |
| 43 | return clone; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * @function OverlayGraphic.prototype.getId |
nothing calls this directly
no test coverage detected