skip to Main Content

Azure map "blank" style map background color changed automatically to beige before that it’s black
its also got changed in azure map samples.

(https://phpout.com/wp-content/uploads/2023/06/4zGsM.png)

Please let me guide how I can change it to black.

I need only blank map not other style

I have also tried to change map div style as mentioned in Azure map documents

enter image description here

Also try to change in its js/ css .

Thank you in advance.

Regards,
Nikhil Patel

2

Answers


  1. This looks to be a bug in a recent update. Please report these types of issues to the Azure support. In the Azure portal, go to your Azure Maps resource and at the bottom of the left side panel is an option to open a "new support request". I’ll also reach out to people I know within the Azure Maps team to make them aware of this.

    Login or Signup to reply.
  2. certainly a regression in a recent style update that is gradually getting rolled out for some users using MapControl 2.2.5 or above. (The background layer has a non-transparent background-color), for now, the hotfix is possible via:

    map._getMap().setPaintProperty(map._getMap().getStyle().layers[0].id, 'background-color', 'transparent');
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search