Fixed cover bug. Renamed mapdata to mapprojection.
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
|
||||
// As map an image of europe is used.
|
||||
let europe = "../../../../var/examples/maps/europe/europe.jpg"
|
||||
let europeData = new MapData(MERCATOR, {
|
||||
let europeMapProjection = new MapProjection(MERCATOR, {
|
||||
clip: {
|
||||
min: { x: 32.863294, y: -18.58 },
|
||||
max: { x: 57.467973, y: 44.277158 }
|
||||
@@ -182,7 +182,7 @@
|
||||
window.readyHandler = new EventHandler("onReady")
|
||||
|
||||
function ready(textures) {
|
||||
let europeMap = new ImageMap(new PIXI.Sprite(textures.get(europe)), europeData)
|
||||
let europeMap = new ImageMap(new PIXI.Sprite(textures.get(europe)), europeMapProjection)
|
||||
app.setMap("germany", europeMap)
|
||||
app.setup().run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user