MAPG-119 view and JS adaptations for new map creation

This commit is contained in:
bence committed 2020-06-10 23:32:38 +02:00
1 parent 6fc83c9459
commit 947ce6b183
2 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -291,6 +291,11 @@
MapEditor.replacePlaceIdsToReal(this.response.added);
if (mapId === 0) {
mapId = this.response.mapId;
window.history.replaceState(null, '', '/admin/mapEditor/' + mapId);
}
MapEditor.added = {};
MapEditor.edited = {};
MapEditor.deleted = {};
@@ -370,7 +375,7 @@
ppi: highResData.ppi,
tileSize: highResData.tileSize,
zoomOffset: highResData.zoomOffset,
minZoom: 0,
minZoom: 2,
maxZoom: 20
}).addTo(MapEditor.map);