Azure map missing features on mouse click

Sujal Shah - Housing India 80 Reputation points
2023-10-30T06:19:14.45+00:00

I have a use case where I want to identify whether the clicked location feature is water or not
Example I've followed: https://samples.azuremaps.com/?sample=inspect-features-under-the-mouse

I'm checking based on the sourceLayer by this possible values:

const possibleWaterTypes = ['ocean', 'sea', 'lake', 'river', 'canal', 'channel', 'bay', 'coastal_water', 'wetland', 'glacier'];

I've validated all the water location across the world in that above example to check to validate my implementation.

It is correct for almost all the location around the world except the one which I found below highlighted 👇 User's image

I believe there must be some data is missing for that area there for it's returning vector background

Steps to reproduce

  1. Open example: https://samples.azuremaps.com/?sample=inspect-features-under-the-mouse
  2. Zoom to the location here as shown in below imagUser's image
  3. Click on any highlighted location shown in 1st image.
  4. Check the sourceLayer on the right side

Expected output should be ocean or related sourceLayer

Current output is vector_background

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

Accepted answer
  1. rbrundritt 18,786 Reputation points Microsoft Employee
    2023-10-30T16:37:21.39+00:00

    It's not uncommon to exclude details water polygons from vector maps as they can often be very large in size and instead color the background with watercolor and have the land polygons overlap and provide the shoreline. However, this doesn't occur in most places in Azure Maps. I believe the reason why this is occurring in this particular location is due to the geopolitical sensitivity of this body of water. If you zoom in close you will find that it is one of the only bodies of water in Azure Maps that does not display a label, and that's because the name is heavily disputed by many countries/regions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.