Fixed overlay example to work with restructured GeoLayers.

This commit is contained in:
2019-11-05 11:23:18 +01:00
parent 87727d28b9
commit 0a30712e31
7 changed files with 17 additions and 22 deletions
+1 -2
View File
@@ -202,7 +202,6 @@
new PIXI.Sprite(textures.get(osmworld)),
worlOSMData,
{
cover: false,
onLoaded: () => {
worldOSMMap.setFrame(frame)
}
@@ -237,7 +236,7 @@
// When placed on the mapLayer, the PIXI Graphic elements, that
// reside inside GeoGraphic Objects are placed automatically at the
// correct coordinates of the map.
pointApp.mapLayer.place(exampleOverlayGeoLayer)
pointApp.mapLayer.addLayer(exampleOverlayGeoLayer)
// Just a helper function that clears the popups and removes