You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix issue with showing marker icons in GeoJSON preview map (#9140)
* Update TileLayer URL and attribution in GeoJSONPreview
Switch to the OpenStreetMap Germany tile server and adjust attribution to reflect the source accurately. Added subdomains, cross-origin, and referrer policy attributes for improved compatibility and security.
* Handle tile load errors by switching OpenStreetMap sources
Added an error handler to retry failed tile requests by switching between OpenStreetMap tile servers. This ensures improved robustness and prevents map failures due to unreachable sources.
* Set default marker icons for Leaflet in GeoJSON preview
Configured Leaflet to use default marker icons and shadow images by importing assets and merging options. This ensures consistent marker display and fixes potential issues with missing icons in the GeoJSON preview component.
* Add leaflet-defaulticon-compatibility to simplify map icons
Replaced manual marker icon configuration with the leaflet-defaulticon-compatibility package for better maintainability and cleaner code. Updated dependencies in package.json and adjusted GeoJSONPreview.jsx imports accordingly. This change improves code readability and ensures seamless icon handling in leaflet maps.
* Refactor GeoJSON tile handling with enhanced fallback logic
Improved fallback mechanisms for map tile loading in `GeoJSONPreview.jsx` by introducing error handling with retries across multiple tile servers. Added detailed comments to clarify tile source URLs, subdomains, and error handling logic for better maintainability. This ensures a more robust and seamless map loading experience.
0 commit comments