-
Notifications
You must be signed in to change notification settings - Fork 155
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
Panicked at 'already borrowed: BorrowMutError' #636
Comments
I've had success using leaflet through web components. It provides a much nicer declarative API for use with seed, although writing the web components in JavaScript can get a little messy. It's not in a state where I feel like I can publish it yet, but here's the raw code for what I have so far, if you feel adventurous: https://gist.github.com/glennsl/93c272ba42f954fcf5eec99b1311ac05 |
Also, your repro link 404s. |
Thanks for the hint. The repo was initially private. Fixed now. Also, thanks for the code. I will try it and see if doing it that way gets rid of the errors. |
@glennsl Unfortunately, I can't get your code to compile. It would be cool if you could submit a working app. |
@torhovland Here you go: https://github.com/glennsl/leafy-example Modified the bindings slightly to remove the use of some internal types and not very important plugins/extensions for leaflet. |
I'm getting some runtime errors that I'm unable to work around, when I'm interacting with a map through
leaflet-rs
.I have a reproducible sample on https://github.com/torhovland/seed-runtime-errors.
I found an explanation @MartinKavik gave to a similar error on Discord (https://discord.com/channels/656436070086606858/676742707246399489/827563775112380438):
If anybody can point out how I can change the sample so that it works, that would be great!
These are the errors I'm getting:
The text was updated successfully, but these errors were encountered: