adding a L.geoJson layer to the map is slow in IE with v0.7.7
See original GitHub issueAdding a new layer to the map object hangs the browser in IE10+. Depending on the complexity of the geometry it could be 10 seconds or over a minute. Seems related to #4061
Issue can be replicated by viewing the following in IE, (notice the lag when clicking on a polygon and new data is added to the map): http://clhenrick.github.io/fosi-test/
Reverting Leaflet to version 0.7.5 fixes the problem.
Below is a screenshot of IE11’s “UI Responsiveness” profile. I’m viewing on Browser Stack so can’t export the actual profile data. Note the abundance of document.createElement()
& document.appendChild()
calls.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Conflicting layer styles for geojson in Leaflet map
You are adding the same geojson layer to the map twice: L.geoJson(geojsonLayer, { style: doStylegtd }).addTo(map); L.geoJson(geojsonLayer,{ ...
Read more >Walkthrough: Adding interactive GeoJSON layers in Leaflet
This walkthrough builds on some of the previous sections of the lesson to show how you can add interactive GeoJSON layers to your...
Read more >Creating An Interactive Map With Leaflet and OpenStreetMap
All we are doing here is creating the map and adding a tile layer. The tile images are coming from the OpenStreetMap servers...
Read more >Changelogs for Maps Marker Pro
do not show layers control with only one basemap added ... upgraded leaflet.js ("the engine of Maps Marker Pro") from v0.7.7 to v1.0.3...
Read more >Leaflet (software) - Wikipedia
... web maps hosted on a public server, with optional tiled overlays. It can load feature data from GeoJSON files, style it and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/davojta/Leaflet/commit/a545f38fab7dc0a857e09e459eb4a594c68480c3 This fix was working for us in 0.7.7 (revert touch detection from commit https://github.com/danzel/Leaflet/commit/4b289ab8071e480c182bb5df76bbfe0cac2a54e0) https://github.com/davojta/Leaflet/commits/stable_0_7_7_1_release - branch with fix
Ah I didn’t know that. I think I might just have to do that as Proj4Leaflet is very critical for R packages based around leaflet. Thanks again!