Fixed cover bug. Renamed mapdata to mapprojection.
This commit is contained in:
@@ -71,10 +71,10 @@
|
||||
const projection = new Projection.Mercator()
|
||||
|
||||
// Create a map data object.
|
||||
const osmDeepZoomMapData = new DeepZoomMapData(projection, tilesConfig, { app })
|
||||
const osmDeepZoomMapProjection = new DeepZoomMapProjection(projection, tilesConfig, { app })
|
||||
|
||||
// Create the map
|
||||
const osmMap = new DeepZoomMap(osmDeepZoomMapData, tilesConfig)
|
||||
const osmMap = new DeepZoomMap(osmDeepZoomMapProjection, tilesConfig)
|
||||
|
||||
// Add the map to the app.
|
||||
app.addMap("osm", osmMap)
|
||||
@@ -122,10 +122,10 @@
|
||||
const projection = new Projection.Robinson(10)
|
||||
|
||||
// Create a map data object.
|
||||
let mapData = new MapData(projection)
|
||||
let mapProjection = new MapProjection(projection)
|
||||
|
||||
// Create the map
|
||||
let imageMap = new ImageMap(sprites.get(mapTexture), mapData)
|
||||
let imageMap = new ImageMap(sprites.get(mapTexture), mapProjection)
|
||||
|
||||
|
||||
// Add the map to the app.
|
||||
|
||||
Reference in New Issue
Block a user