-
Notifications
You must be signed in to change notification settings - Fork 61
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
ready event on <Map> not firing anymore on 8.1.1 #56
Comments
Hey @evdama - it's possible I broke some events, and it looks like, possibly broke the zoom binding. I'll try to fix these issues asap. |
Ok, I've fixed the events, not sure how to handle the bindings at all since it all lives inside an action now, and that means I can't do anything reactive. that needs some thought I guess. I considered putting all the values in stores - so maybe I'll be able to do this sometime soon, but I don't have time right now. |
Excellent, thanks much! Another nice event to have would be Also, why is |
Yes, ok, the Readme still mentions bindings i.e. somebody installing svelte-mapbox today would be very confused as it's not working as described.
Roger Roger... It's just really really nice if you can show reactively updated values to the user such as <div class="flex flex-row justify-center">Your Current Zoom Level: { zoom }</div> |
Yep - I'll have a think on this or wait for somebody smarter to come up with a solution! |
@antony What do you think about having |
@evdama If it's useful, then yeah I think dragstart would be a useful event. |
just boosting this here, as in mapbox ^9.1.0 the zoom and center bindings still do not work :( |
I'm on Sapper 0.29.2 where I've worked on a map over the last few days using the following code where
on:ready
fired as expected:on:ready
doesn't fire anymore i.e in the above snippetconsole.log()
never prints to the console? 🤔bind:zoom
stopped working i.e. using{ zoom }
somewhere on the page to show the user his current zoom level worked in 7.7.1 but stopped working after upgrading to version 8.1.1@antony does
on:ready
work for you at this point i.e. using 8.1.1? I just went back to 7.7.1 and all works again, no change to my source, just downgrading svelte-mapbox 🤷♂️The text was updated successfully, but these errors were encountered: