From 968a4725cc767236a85e8439a8e5b7d6ba697a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Wed, 18 Aug 2021 02:11:35 +0200 Subject: [PATCH] FIX: wrong burg cell id --- modules/submap.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/submap.js b/modules/submap.js index fdbf8ed2..c115f6fa 100644 --- a/modules/submap.js +++ b/modules/submap.js @@ -187,7 +187,7 @@ window.Submap = (function () { // BurgsAndStates.defineBurgFeatures(); stage("Porting and locking burgs."); - if (options.copyBurgs) copyBurgs(parentMap, projection); + if (options.copyBurgs) copyBurgs(parentMap, projection, options); else BurgsAndStates.regenerateBurgs(); BurgsAndStates.drawBurgs(); @@ -235,7 +235,7 @@ window.Submap = (function () { return kernel(centerId, 1); } - function copyBurgs(parentMap, projection) { + function copyBurgs(parentMap, projection, options) { const [[xmin, ymin], [xmax, ymax]] = getViewBoxExtent(); const inMap = (x,y) => x>xmin && xymin && y