-
Notifications
You must be signed in to change notification settings - Fork 53
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
'Powered by Esri' missing in map attribution #133
Comments
Hi, thank you for the question. Can you please post a sample code that shows the issue not showing "powered by Esri"? I see it showing here: |
@gavinr Thanks for the response
This map doesn't show the 'Powered by Esri' |
Are you able to use this? L.esri.Vector.vectorBasemapLayer("OSM:Standard", {
apikey: apiKey
}).addTo(map); That way includes the "Powered by Esri". |
@gavinr Unfortunately i can't, In my use case the basemaps are fetched dynamically from the user's gallery |
In that case, you can pass the L.esri.Vector.vectorBasemapLayer("3e1a00aeae81496587988075fe529f71", {
apiKey: apiKey,
attribution: 'Powered by <a href="https://esri.com">Esri</a>'
}).addTo(map); |
@gavinr That's a nice workaround, |
This comment was marked as outdated.
This comment was marked as outdated.
@gavinr Why is this different from other layers? for example: RasterLayer has the 'setEsriAttribution' call in the 'onAdd' event (same with other layers in that library) but for VectorBasemapLayer it calls 'setEsriAttribution' only on '_setupAttribution' callback only if id isn't 32 characters. |
Thanks for the input @ItaiEinhorn. I think you're right - every standard Esri Leaflet layer type adds "Powered by Esri" except for this layer in this very specific case (demo). Given that, I agree with you that this layer should be consistent and add "Powered by Esri" in all use cases. PRs to update this are welcome! |
I've submitted a PR referenced above (#135) that seeks to resolve this issue. @ItaiEinhorn @gavinr |
@gavinr @shawnmgoulet Thank you guys, Any idea when a new version will be published? |
Describe the bug
Other Esri leaflet map layers support the 'Powered by Esri' attribution
onAdd: function (map) { // include 'Powered by Esri' in map attribution setEsriAttribution(map); ...
Vector layers does not support this behavior
Requesting to add the 'setEsriAttribution' call to the 'onAdd' function in the vector layers
Reproduction
Tiled map layer:
.
Vector Layer:
Logs
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: