P
P
Pavel Kityan2017-01-23 01:51:10
JavaScript
Pavel Kityan, 2017-01-23 01:51:10

How in the latest version of Leaflet to disable the loading of tiles before the end of the zoom?

Hello. I rummaged through all the settings for version 1.0.2 - I did not find it.
Here on openstreetmap.ru 0.7.3 is used and on touch devices until you complete pitch / zoom - tiles are not loaded. Actually, that's what I need. But in version 1.0.2 this is no longer the case (it's on openstreetmap.org ). It loads tiles as soon as zoom-in/out occurs, even if touchend hasn't happened yet and the user is holding the card.
As a result, the zoom is jerky (we are talking about touch devices, iPad Air is the first)
I can’t get around this. I don't want to make a patch.
Maybe I overlooked the setting?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2017-01-23
@Moskus

updateWhenIdle layer property leafletjs.com/reference.html#tilelayer-updatewhenidle

If false, new tiles are loaded during panning, otherwise only after it (for better performance). true by default on mobile WebKit, otherwise false.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question