Updated mapapp.

This commit is contained in:
Severin Opel 2019-11-13 14:33:24 +01:00
parent 46b80c3e2a
commit 89395ba641

View File

@ -1,5 +1,5 @@
import PIXIApp from '../app.js'
import { CoordinateDisplay } from '../../../../js/display.js'
import { CoordinateDisplay } from './display.js'
import { MapLayer } from './geolayer.js'
import { RigidScatterContainer } from './scatter.js'
import { EventHandler } from './utils.js'
@ -90,7 +90,8 @@ export default class MapApp extends PIXIApp {
_setupMapLayer() {
this.mapContainer = new PIXI.Container()
this.mapLayer = new MapLayer(this.scene, this.mapContainer, {
console.log(this.mapList)
this.mapLayer = new MapLayer(this.mapList, this.scene, this.mapContainer, {
name: 'Map Layer',
focus: this.focus,
zoom: this.zoom
@ -217,9 +218,8 @@ export default class MapApp extends PIXIApp {
this.transformed()
this.onMapChanged.call(this, this.map)
this.map.onTransform.add(this.transformed.bind(this))
this.map.onTransform.add(this.transformed.bind(this))
if (this.ui && this.ui.parent) {
const parent = this.ui.parent
@ -287,6 +287,7 @@ export default class MapApp extends PIXIApp {
}
get map() {
console.log(this.mapList)
return this.mapList.map
}