Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LeafletJS 1.0 support #103

Open
josefpaij opened this issue Nov 8, 2016 · 2 comments
Open

Add LeafletJS 1.0 support #103

josefpaij opened this issue Nov 8, 2016 · 2 comments

Comments

@josefpaij
Copy link

I am using Leaflet 1.0 in a project and would like to use OSMBuildings. However, there is an issue where the buildings get completely redrawn on the moveend event and they briefly disappear. Here is an example forked from the "Integrate with LeafletJS" example in the docs, using [email protected] instead of [email protected]: http://codepen.io/anon/pen/XNbwYK

Are there plans to add support for LeafletJS 1.0?
Any idea how to get around the redraw disappearance?

@kekscom
Copy link
Owner

kekscom commented Nov 8, 2016

I'd love to spent more time on 2.5D version but have very little time to do so.
The flicker did appear on earlier versions as well as it does in OpenLayers.
Basically on moveend many things are rebuilt. A slightly changed event emission might cause this.

@tuckwat
Copy link

tuckwat commented Nov 11, 2016

Looks like the flickering is caused by the map drag inertia. Unfortunately you can't disable it directly but setting the inertiaDeceleration to a high enough value will effectively disable it and prevent flickering. I wasn't able to get it flicker-free with inertia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants