netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

[bug] Overlaying Indoor Map with L.CRS.Simple Overrides Geo Map Interaction and CRS Settings

Open dee077 opened this issue 5 months ago • 0 comments

Describe the bug When opening the indoor map overlay, which is rendered using L.CRS.Simple, on top of the main geographical map (which uses the default CRS L.CRS.EPSG3857), the interaction behavior of the base map unexpectedly changes. The coordinate reference system (CRS) settings and zoom behavior of the main map start to behave according to L.CRS.Simple.

Even after closing the indoor map overlay, the main map does not revert to its original CRS, and any interaction with the geo map becomes broken.

Steps To Reproduce Steps to reproduce the behavior:

  1. Open example Indoor map as Overlay of Geographic map.
  2. Click on any node, and it will open an indoor map as an overlay.
  3. Close the overlay.
  4. Interact with the geo map by zooming or moving the map in any way that requires new tile rendering. See the api failure in the console.

Expected behavior The indoor map should not override the interaction functionalities, or even if it overrides should revert back on closing the overlay

Screenrecodding

https://github.com/user-attachments/assets/bab3b97c-1ca0-4cd9-8763-790f3b0b7b99

dee077 avatar Jul 14 '25 18:07 dee077