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 -1
View File
@@ -186,7 +186,7 @@ export default class Overlay {
adjustItems = null
} = {}) {
const name = this.name[0].toUpperCase() + this.name.slice(1).toLowerCase() + ' Overlay'
let geoLayer = new GeoLayer({ name })
let geoLayer = new GeoLayer(new PIXI.Container(), { name })
if (this.rescale) geoLayer.rescale = this.rescale
this.items.forEach(item => {
if (!excludeItems(item)) {