ammap3 icon indicating copy to clipboard operation
ammap3 copied to clipboard

Lagging zoom animation with worldHigh

Open joneswe opened this issue 7 years ago • 3 comments

Hey guys, when I use the high-res world map (worldHigh), the zoom to a selected area is lagging. Do you have some tipps for a better performance?

joneswe avatar Sep 26 '17 07:09 joneswe

Hey,

No, I'm afraid. When using high-res maps, browser has to move a lot of pixels. Some browsers (like Chrome) are better at it, but others (Firefox) will be slower, especially on older systems or mobile devices.

There's no way around it, except disabling zoom animations.

To do so, set zoomDuration: 0 in your map config.

martynasma avatar Sep 27 '17 04:09 martynasma

Have you adjusted the worldHighMap? The performance is much better and the little islands are missing

joneswe avatar Sep 28 '17 13:09 joneswe

Hm, I don't think we had any updates to worldHigh.js recently. Are you sure you're not using worldLow.js?

martynasma avatar Sep 29 '17 06:09 martynasma