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 back "Powered by Esri" attribution for vectorBasemapLayer when using an item ID #229

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

gavinr-maps
Copy link
Contributor

@gavinr-maps gavinr-maps commented Dec 3, 2024

Issue: #228

In #135 we added add call to Util.setEsriAttribution() to add the "Powered by Esri" attribution, but after Esri Leaflet v3.0.10, calling Util.setEsriAttribution does not add "Powered by Esri" anymore. Esri Leaflet only adds "Powered by Esri" for dynamic attribution situations now. So now for non-dynamic situations, we must add the string ourselves.

After this gets released: Esri/esri-leaflet#1397 ... we could use that function so that we do not need to hardcode that string here. But for now I'm adding it since I want to get this in before waiting for an Esri Leaflet release.

… cases

In Esri#135 we added `Util.setEsriAttribution` to add the "Powered by Esri" attribution, but after Esri Leaflet v3.0.10, calling `Util.setEsriAttribution` does not add "Powered by Esri" anymore. Esri Leaflet only adds "Powered by Esri" for dynamic attribution situations. So now for non-dynamic situations, we must add the string ourself.
@gavinr-maps gavinr-maps merged commit 0a7cce8 into Esri:master Dec 17, 2024
9 checks passed
@gavinr-maps gavinr-maps deleted the 228-attribution-for-itemid-fix branch December 17, 2024 17:36
@gavinr-maps
Copy link
Contributor Author

This was released in v4.2.6: https://github.com/Esri/esri-leaflet-vector/releases/tag/v4.2.6

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.

3 participants