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.

Creating decorator is slow when zoomed in

See original GitHub issue

Hi,

Here’s jsfiddle for reproducing issue: http://jsfiddle.net/3rmk0nou/26/

Please skip 626 lines because it’s copy-pasted Leaflet.PolylineDecorator code (is there CDN link for this plugin anywhere?).

In current example, when zoom level is 17 and polyline is created using decorator (Click button to create), it takes ~20 seconds to create, and ~20 seconds to fitBounds on i5-3210M @ 2.50GHz laptop. Polyline has only 10 vertexes.

If zoom level is 20, create time exceeds one minute. The more map is zoomed while creating decorated polyline, the slower it gets. On mobile device it can take multiple minutes. In user point of view, “it hangs” (though it does provide result after quite some time).

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
hjoertelcommented, Aug 17, 2017

Hello Benjamin,

just let you know, that I manged the update. It now works much better then before, thanks

If you like to look what I did: http://www.oertel-halle.de/katrin/

regards Heinz

1reaction
Techn1xcommented, Aug 19, 2017

@bbecquet just letting you know that I’ve updated to 1.3.2 and the performance is excellent, even on my 2000+ point polylines, thanks a bunch!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pan view and zoom are slow when survey decorations are ...
When I use the pan view in a drawing with the survey decorations turned on, the detail, or the entire display, vanish during...
Read more >
How to slow this animation down with javascript - Stack Overflow
Works very fine for me, the speed is slow, even if you zoom in. It is logical that it appears to be a...
Read more >
How to Zoom in/out Videos in iMovie on Mac/iPhone?
In today's article, we will show you how to zoom in/out videos in iMovie on your Mac and iPhone.
Read more >
Zooming Background Images | CSS-Tricks
As I had never created an effect like this before, I began to take a look at different ways of doing this and...
Read more >
Spring Into Feeling Better in Your Home - Munster, IN Interior ...
Every client and homeowner have a different 'Feel' that they want to create in their home. When working with Decorating Den Interiors 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