question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adding a L.geoJson layer to the map is slow in IE with v0.7.7

See original GitHub issue

Adding 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.

bs_win8 1_ie_11 0 1

bs_win8 1_ie_11 0 2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

0reactions
bhaskarvkcommented, Jan 18, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found