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