-
Notifications
You must be signed in to change notification settings - Fork 48
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
Legend items are lost when switching basemap #4016
Comments
Unfortunately we can't run your staging site. The page is accessible (when on VPN) but all your libraries hosted on Regardless, the only change in My suspicion is something in the projection change (and bookmark encoder/decoder that facilitates the change) is putting a For the dev who digs deeper into this, you can likely hack in a fake RCS response (temporarily) if that makes things easier. The response json in this example is [
{
"layers": [
{
"isTimeAware": false,
"layerType": "esriDynamic",
"service_url": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/900A_and_top_100_en/MapServer",
"name": "Mineral Areas, Producing Mines, and Oil and Gas Fields (900A)",
"id": "rcs.000183ed-8864-42f0-ae43-c4313a860720.en",
"url": "https://maps-cartes.services.geo.ca/server_serveur/rest/services/NRCan/900A_and_top_100_en/MapServer",
"layerEntries": [
{
"index": 1
}
]
}
]
}
] |
The guilty party, most likely |
Johann, if you're feeling brave, you can attempt a fast hack. Search for string Change to (just flipping true to false, essentially). I make no promises!!! But could give you an immediate fix instead of waiting for a new release. |
@jolevesq Please let us know if the potential solution above works for you, and we can ensure this is patched in 3.3.6. |
@james-rae @dan-bowerman Thanks for the quick update-fix. I will try and let you know. |
@james-rae @dan-bowerman Works perfectly, Thanks. |
When we switch from LCC basemap to Web Mercator with the viewer using keys to load the layers, the legend items disappears. Use to works fine in version 3.3.4.
Not working: https://staging.gcgeo.gc.ca/viz/index-en.html?keys=000183ed-8864-42f0-ae43-c4313a860720
Working: https://gcgeo.gc.ca/viz/index-en.html?keys=000183ed-8864-42f0-ae43-c4313a860720
The text was updated successfully, but these errors were encountered: