Azure / Azure/react-azure-maps-playground

Custom Styling for Region Color Change at Zoom Level 2

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15
Forks
32
PR merge metrics
No merged PRs in 30d

Description

We are currently working on implementing a Dashboard map view using react-azure-maps, but we have encountered a challenge in achieving our desired result.
Specifically, we need to change the color of regions from white to green while keeping the ocean color as its default blue.

In **Azure Maps**, **zoom level 2 and the 'road' style** provide one result, whereas in the **react-azure-maps library, at zoom level 2 with the 'road' style**, we get a different view.

Azure Maps view, [ zoom level :2, style:road]
![image](https://github.com/Azure/react-azure-maps-playground/assets/14287834/45eafaa4-530a-4c2e-9307-235987f3b847)

View provided by react-azure-maps package [ zoom level :2, style:road]
![image](https://github.com/Azure/react-azure-maps-playground/assets/14287834/5e2d01c1-f8f5-4e70-861c-904fae1c2b69)

However, when we increase the zoom level to 4, some regions of the map are green in color.
![image](https://github.com/Azure/react-azure-maps-playground/assets/14287834/feb782d4-77b6-4bf0-84b6-9bcf40226aa1)

As we've explored the available options within the react-azure-maps library, we haven't found a straightforward way to customize the styling to meet this requirement.

Could you please advise us on how we can achieve this specific styling change within the react-azure-maps library at a zoom level of 2?

Thank you in advance for your help, and we look forward to your response

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.