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.
Azure map missing features on mouse click
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 👇
I believe there must be some data is missing for that area there for it's returning vector background
Steps to reproduce
- Open example: https://samples.azuremaps.com/?sample=inspect-features-under-the-mouse
- Zoom to the location here as shown in below imag
- Click on any highlighted location shown in 1st image.
- Check the
sourceLayer
on the right side
Expected output should be ocean
or related sourceLayer
Current output is vector_background
-
rbrundritt 18,786 Reputation points Microsoft Employee
2023-10-30T16:37:21.39+00:00