how to disable labels in map

Hessar, Robert 1 Reputation point
2021-11-24T09:27:46.837+00:00

Hi,

using get map service to get a static map image for a latitude longitude.

is there a way to disable the map text / labels ie street names and other icons I want to get an image showing the map and no labels.

image.

152193-image.png

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

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee Moderator
    2021-11-24T17:31:37.2+00:00

    Hi @Hessar, Robert take a look at this similar thread in StackOverflow: https://stackoverflow.com/questions/56799783/is-it-possible-to-remove-labels-from-azure-maps

    Did you try the workaround provided by @rbrundritt ?

    From @rbrundritt in related SO thread:

    There isn't a documented API for this, but there is an unsupported way to do this. The base maps in Azure Maps use the Mapbox Vector Tile style schema which is a open standard. Its possible to access the base map layers and hide any label layers you want. Here is a code sample that hides all the labels in the base map:


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.