From ef16f2b12be920499959b5257d351a29d62c5172 Mon Sep 17 00:00:00 2001 From: Severin Opel Date: Tue, 5 Nov 2019 16:02:27 +0100 Subject: [PATCH] Improved doctests. --- lib/pixi/maps/geographics.js | 2 + lib/pixi/maps/overlay.html | 59 +++--- lib/pixi/maps/overlay.js | 6 + lib/pixi/maps/projections/projections.html | 194 ++++++++++++++------ lib/pixi/maps/projections/robinsontest.html | 50 ----- 5 files changed, 184 insertions(+), 127 deletions(-) delete mode 100644 lib/pixi/maps/projections/robinsontest.html 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.

- + - + + + + + +