Improved doctests.
This commit is contained in:
@@ -26,6 +26,7 @@ export class GeoGraphics {
|
||||
this.drawEndHandler = new EventHandler('onDrawEnd', { listeners: onDrawEnd })
|
||||
this._points = null
|
||||
this._position = null
|
||||
this.map = null
|
||||
}
|
||||
|
||||
clone() {
|
||||
@@ -91,6 +92,7 @@ export class GeoGraphics {
|
||||
* Called by the containing geo layer, when the map changes.
|
||||
*/
|
||||
adaptTo(map) {
|
||||
this.map = map
|
||||
this._points = this._adaptCoordinates(map)
|
||||
this._updatePosition()
|
||||
this.draw()
|
||||
|
||||
Reference in New Issue
Block a user