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
I am building an app where the user can change the map type, for example switching from the Bing Aerial to the OSM.
The map control has 2 layers: the map and a GPS track.
When the user wants to switch map type, I remove the old map layer and replace it with the new one.
The new layer may have a different attribution text and URL.
So this is what happens:
open the control with Bing Aerial; the attribution is Microsoft; clicking on it opens the Microsoft website
switch to the OSM map; the attribution is OSM; clicking on it still opens the Microsoft website
I debugged the code and I see that when the layer is replaced, both the text and the URL of the attribution are correct, so I have no idea where the issue is coming from.
Is there maybe some sort of caching that I should take into account?
The text was updated successfully, but these errors were encountered:
Thank you for the response. I can try to reproduce in a sample but I never installed them so I may not get to it very quickly.
I also decided to handle the attributions in a different way because I realized the Stadia and Thunderforest require multiple separate URL links in the same attribution and as far as I can tell I can't do that with the standard Attribution object.
I am building an app where the user can change the map type, for example switching from the Bing Aerial to the OSM.
The map control has 2 layers: the map and a GPS track.
When the user wants to switch map type, I remove the old map layer and replace it with the new one.
The new layer may have a different attribution text and URL.
So this is what happens:
I debugged the code and I see that when the layer is replaced, both the text and the URL of the attribution are correct, so I have no idea where the issue is coming from.
Is there maybe some sort of caching that I should take into account?
The text was updated successfully, but these errors were encountered: