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

Azure Maps sample doesn't work if you change map style #323

Closed
rbrundritt opened this issue Jan 14, 2022 · 4 comments
Closed

Azure Maps sample doesn't work if you change map style #323

rbrundritt opened this issue Jan 14, 2022 · 4 comments
Labels
🪲 bug Something isn't working

Comments

@rbrundritt
Copy link

If you load the Azure Maps sample, then change the map style, the 3D model disappears and doesn't come back.

@rbrundritt rbrundritt added the 🪲 bug Something isn't working label Jan 14, 2022
@jscastro76
Copy link
Owner

Humm... let me check it out!!!

jscastro76 added a commit that referenced this issue Jan 14, 2022
@jscastro76
Copy link
Owner

Interesting, it worked twice with the default style to terra and road, but they disappear on Greyscale...

I'm seeing that the console returns this:

atlas.js:505 Unable to perform style diff: Unimplemented: setSprite..  Rebuilding the style from scratch.

It seems the control performs a full reload so the custom layer is not reloaded becuse the event is map.events.add("load",... ... so changing it to

map.events.add("style.load"... 

@jscastro76
Copy link
Owner

jscastro76 commented Jan 14, 2022

Uploaded the change, just sync changes... it should work now!
Thanks for reporting @rbrundritt !!!

jscastro76 added a commit that referenced this issue Jan 14, 2022
@jscastro76
Copy link
Owner

Resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants