-
Notifications
You must be signed in to change notification settings - Fork 799
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
TiledMapLayer no longer removes itself #1264
Comments
Thanks for the report! Are you able to create a simplified replication case (using JSBin or similar) for this? |
Sure, I can. But, i think the code speaks for itself - it never calls the
remove code in the layer prototype.
I'll throw something together.
Thanks,
Caleb
…On Fri, Mar 19, 2021 at 2:31 PM Gavin Rehkemper ***@***.***> wrote:
Thanks for the report! Are you able to create a simplified replication
case (using JSBin or similar) for this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1264 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHB5X3VQFZQZWYB3H3SGH53TEORBRANCNFSM4ZPLJACQ>
.
--
Caleb Pourchot
Principal
landconservationsoftware.com | Find me on Facebook
<https://facebook.com/landscapesoftware> | Follow me on Twitter
<https://twitter.com/landscapesoft>
LANDSCAPE is a product of:
Dendroyka LLC | 2426 E Johnson Street | Madison, WI | 53704
|
Here's a fiddle: notice the attribution gets removed, but the layer doesn't. Thanks |
That looks like it exactly. Sorry I didn't find it when searching. Just gotta update. Thanks! |
No problem. This is the best kind of fix! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add a TiledMapLayer
Call layer.remove or map.removeLayer() on the TiledMapLayer
The pane isn't removed from the map.
Looks like it is related to this change #1248 for removing attribution. OnRemove() was added to TiledMapLayer, but the base leaflet version of the function isn't called, so the layer is never removed. At least I think that's what is happening.
esri-leaflet version 2.5.3
leaflet ##1.7.1
The text was updated successfully, but these errors were encountered: