You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Esri Leaflet adds Powered by Esri to the attribution, it overwrites the preexisting attribution prefix.
I submitted pull request #1360 to address this. This pull request changes this process to retrieve the existing attribution prefix first, so that it can be used in lieu of the constant when overwriting and so that it can be restored in the event that all Esri layers are moved from the map display.
Reproduction
In this sample, the state layer hosted by Esri is loaded on page load, and the custom prefix is not included at all, despite being included in the code:
In this sample, the custom prefix is displayed when the page is loaded, but is overwritten when the state layer hosted by Esri is loaded, and is not restored if removed:
Describe the bug
When Esri Leaflet adds Powered by Esri to the attribution, it overwrites the preexisting attribution prefix.
I submitted pull request #1360 to address this. This pull request changes this process to retrieve the existing attribution prefix first, so that it can be used in lieu of the constant when overwriting and so that it can be restored in the event that all Esri layers are moved from the map display.
Reproduction
In this sample, the state layer hosted by Esri is loaded on page load, and the custom prefix is not included at all, despite being included in the code:
https://output.jsbin.com/habugazata/1/
In this sample, the custom prefix is displayed when the page is loaded, but is overwritten when the state layer hosted by Esri is loaded, and is not restored if removed:
https://output.jsbin.com/habugazata/2/
Logs
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: