Fixed overlay example to work with restructured GeoLayers.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user