Timeline for Switching the coordinate system dynamically in Leaflet
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 8, 2024 at 8:45 | comment | added | TomazicM | You can change CRS dynamically, but not for the layers that were displayed in previous CRS. This would mean reprojecting layers to different CRS, but Leaflet can't do that (but it's possible in OpenLayers). You would have to remove those layers and add layers that have this new CRS. | |
| Aug 8, 2024 at 7:50 | comment | added | bobr | So I can't change the coordinate system in the leaflet dynamically, even if I try to redraw the map somehow? | |
| Aug 8, 2024 at 7:47 | comment | added | bobr | But in the first case it works fine, I gave you an example, you can see it. If you initially set the leaflet map to crs, it works. But if you change the crs dynamically, with a request to the server, it doesn't work. | |
| Aug 8, 2024 at 7:34 | comment | added | TomazicM | Complete workflow of your app is not clear from your code above. If layers load successfully at the start and you then to try to change projection for the same layers, this is not possible in Leaflet. In Leaflet raster layers can be shown only in their native projection. If your WMS layer has projection EPSG:4326, it can be shown only in the map with this projection. | |
| Aug 8, 2024 at 5:54 | history | edited | bobr | CC BY-SA 4.0 | Edited |
| Aug 8, 2024 at 5:45 | comment | added | bobr | Layers are loaded when the map starts. | |
| Aug 8, 2024 at 5:42 | comment | added | bobr | Edited. Please, can you see? | |
| Aug 8, 2024 at 5:42 | history | edited | bobr | CC BY-SA 4.0 | Wms service explain |
| Aug 8, 2024 at 0:39 | history | edited | PolyGeo♦ | edited tags | |
| Aug 7, 2024 at 20:12 | history | edited | Vince | CC BY-SA 4.0 | naming |
| Aug 7, 2024 at 15:47 | review | Close votes | |||
| Aug 22, 2024 at 3:04 | |||||
| Aug 7, 2024 at 15:31 | comment | added | TomazicM | Please edit your code with how, where and when you create you layer. | |
| Aug 7, 2024 at 15:04 | history | edited | TomazicM | CC BY-SA 4.0 | deleted 51 characters in body; edited title |
| Aug 7, 2024 at 14:28 | history | asked | bobr | CC BY-SA 4.0 |