Azure Map Rendering issues

Jasmin Savard 20 Reputation points
2023-10-18T23:25:20.9866667+00:00

We have an issue with maps rendering on certain zoom levels.

As an example here when we are zooming on the map near to "street level" the polygon does not render correctly.78decc3b-ab3e-4b29-bd08-359facc99b5d

Zooming out fixes the issue.

5d122578-33e1-4fcb-a1dd-6202fb737590

We are using a PolygonLayer with HtmlMarkers for these dots.

https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/azure-maps/map-add-shape.md#use-a-polygon-layer

Is there a way to fix this issue by using a different kind of polygon rendering? We see that zooming out does show the polygon correctly but the issue seems related to a specific zoom level.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
664 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 16,551 Reputation points Microsoft Employee
    2023-10-19T13:18:54.06+00:00

    It looks like there is a straight line point down there, like the seam between vector tiles. With this in mind, I suspect the root cause of the issue is that your polygon isn't closed. Valid polygons have the same start and end point. So, your polygon should have 5 points where 0 and 4 indexed points are the same.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful