From 915907348370e9db22aa64ce3213368ba0324483 Mon Sep 17 00:00:00 2001 From: Severin Opel Date: Thu, 5 Dec 2019 17:06:50 +0100 Subject: [PATCH] Fixed GeoGraphics doctest. --- lib/pixi/bundle.js | 4 +- lib/pixi/maps/geographics.html | 67 +++++++++++++++++++++++++++------- 2 files changed, 57 insertions(+), 14 deletions(-) diff --git a/lib/pixi/bundle.js b/lib/pixi/bundle.js index 3cdd187..12b52c7 100755 --- a/lib/pixi/bundle.js +++ b/lib/pixi/bundle.js @@ -100,7 +100,6 @@ window.CompactScatter = CompactScatter window.CoverScatter = CoverScatter window.MapObjectScatter = MapObjectScatter - import { GeoLayer, MapLayer } from './maps/geolayer.js' window.GeoLayer = GeoLayer window.MapLayer = MapLayer @@ -118,5 +117,8 @@ import Overlay from './maps/overlay.js' window.Overlay = Overlay import { MapList } from './maps/maplist.js' +import GeoJson, { GeoUtils } from './maps/geojson.js' window.MapList = MapList +window.GeoJson = GeoJson +window.GeoUtils = GeoUtils diff --git a/lib/pixi/maps/geographics.html b/lib/pixi/maps/geographics.html index 5044e53..8edff9d 100644 --- a/lib/pixi/maps/geographics.html +++ b/lib/pixi/maps/geographics.html @@ -91,8 +91,7 @@ function enableSwitch(button, app) { button.addEventListener("click", () => { - let next = app.mapList.next() - app.selectMap(next) + let next = app.mapLayer.next() }) } @@ -157,15 +156,13 @@ enableSwitch(geopoint_switch, app) - // app.mapLayer.place(capitalLayer) - app.mapLayer.addLayer(capitalLayer) }).catch(console.error) })() - + + +
+

GeoGraphics & GeoJson

+

The GeoGraphics work together with the GeoJson class. To convert the standardized format to PIXI elements. +

+ +
+ +
+ + + + +
\ No newline at end of file