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

remove attribution logic #1248

Merged
merged 1 commit into from
Dec 29, 2020
Merged

remove attribution logic #1248

merged 1 commit into from
Dec 29, 2020

Conversation

gavinr
Copy link
Contributor

@gavinr gavinr commented Dec 28, 2020

This is a follow-up to #841 where we added the logic to add the attribution, but did not add the logic to remove the attribution string:

  • Track how many esri-leaflet layers are on the map (stored as in integer in attributionControl._esriAttributionLayerCount)
  • using the count from attributionControl._esriAttributionLayerCount, remove the "Powered by Esri" attribution when all the esri-leaflet layers have been removed from the map

#1239

@jwasilgeo
Copy link
Contributor

looks great!

@gavinr gavinr merged commit 5569b70 into master Dec 29, 2020
@gavinr gavinr deleted the 1239-attribution branch December 29, 2020 17:24
@gavinr
Copy link
Contributor Author

gavinr commented Dec 29, 2020

jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
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

Successfully merging this pull request may close these issues.

"Powered by Esri" Map Attribution doesn't go away when you run Map.removeLayer(...) on an esri-leaflet map
3 participants