diff --git a/public/example_templates/netjsonmap-indoormap.html b/public/example_templates/netjsonmap-indoormap.html index 84c072f6..893aec6a 100644 --- a/public/example_templates/netjsonmap-indoormap.html +++ b/public/example_templates/netjsonmap-indoormap.html @@ -48,6 +48,9 @@ crs: L.CRS.Simple, // set map initial state. mapOptions: { + // disable leaflet worldCopyJump on the indoor map + // because it's incompatible (raises a JS error) and not needed + worldCopyJump: false, center: [48.577, 18.539], zoom: 0, zoomSnap: 0.3, diff --git a/src/js/netjsongraph.config.js b/src/js/netjsongraph.config.js index 3dd09558..53b33368 100644 --- a/src/js/netjsongraph.config.js +++ b/src/js/netjsongraph.config.js @@ -165,6 +165,7 @@ const NetJSONGraphDefaultConfig = { mapOptions: { roam: true, zoomAnimation: false, + worldCopyJump: true, minZoom: 3, maxZoom: 18, nodeConfig: { diff --git a/test/netjsongraph.spec.js b/test/netjsongraph.spec.js index 44093bae..90e35600 100644 --- a/test/netjsongraph.spec.js +++ b/test/netjsongraph.spec.js @@ -120,6 +120,7 @@ describe("NetJSONGraph Specification", () => { const NetJSONGraphMapOptions = { roam: true, zoomAnimation: false, + worldCopyJump: true, minZoom: 3, maxZoom: 18, nodeConfig: {