Updated mapapp.
This commit is contained in:
parent
46b80c3e2a
commit
89395ba641
@ -1,5 +1,5 @@
|
|||||||
import PIXIApp from '../app.js'
|
import PIXIApp from '../app.js'
|
||||||
import { CoordinateDisplay } from '../../../../js/display.js'
|
import { CoordinateDisplay } from './display.js'
|
||||||
import { MapLayer } from './geolayer.js'
|
import { MapLayer } from './geolayer.js'
|
||||||
import { RigidScatterContainer } from './scatter.js'
|
import { RigidScatterContainer } from './scatter.js'
|
||||||
import { EventHandler } from './utils.js'
|
import { EventHandler } from './utils.js'
|
||||||
@ -90,7 +90,8 @@ export default class MapApp extends PIXIApp {
|
|||||||
|
|
||||||
_setupMapLayer() {
|
_setupMapLayer() {
|
||||||
this.mapContainer = new PIXI.Container()
|
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',
|
name: 'Map Layer',
|
||||||
focus: this.focus,
|
focus: this.focus,
|
||||||
zoom: this.zoom
|
zoom: this.zoom
|
||||||
@ -220,7 +221,6 @@ export default class MapApp extends PIXIApp {
|
|||||||
|
|
||||||
this.map.onTransform.add(this.transformed.bind(this))
|
this.map.onTransform.add(this.transformed.bind(this))
|
||||||
|
|
||||||
|
|
||||||
if (this.ui && this.ui.parent) {
|
if (this.ui && this.ui.parent) {
|
||||||
const parent = this.ui.parent
|
const parent = this.ui.parent
|
||||||
parent.removeChild(this.ui)
|
parent.removeChild(this.ui)
|
||||||
@ -287,6 +287,7 @@ export default class MapApp extends PIXIApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get map() {
|
get map() {
|
||||||
|
console.log(this.mapList)
|
||||||
return this.mapList.map
|
return this.mapList.map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user