diff --git a/lib/pixi/maps/geographics.js b/lib/pixi/maps/geographics.js index db9703e..5b028dd 100644 --- a/lib/pixi/maps/geographics.js +++ b/lib/pixi/maps/geographics.js @@ -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() diff --git a/lib/pixi/maps/overlay.html b/lib/pixi/maps/overlay.html index 411db62..7a73a99 100644 --- a/lib/pixi/maps/overlay.html +++ b/lib/pixi/maps/overlay.html @@ -5,8 +5,13 @@ Overlay - - + + + + + + + @@ -27,14 +32,14 @@ -

Overlay

-

+

Overlay

+

The overlayclass creates a convenient way to create and design complex map overlays.

- + - + + + + + +