question

PahariAnupam-4777 avatar image
0 Votes"
PahariAnupam-4777 asked rbrundritt answered

Azure Map remove bottom area

How do i remove bottom area of azure Map. pls refer 28367-issue.pngto the attached screen.


azure-maps
issue.png (291.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AshokPeddakotla-MSFT avatar image
1 Vote"
AshokPeddakotla-MSFT answered PahariAnupam-4777 commented

@PahariAnupam-4777 Welcome to Microsoft Q&A forum!

To remove the specified area and load the map in full screen, you need to add/specify the height of the map to 100%.

 <style>
          html, body {
              margin: 0;
          }
    
          #myMap {
              height: 100vh;
              width: 100vw;
          }
      </style>

Please see below screenshots to understand more.

Before:

28682-image.png

28630-image.png

After:

28617-image.png

28681-image.png


Hope this helps. Do let us know if you have any further queries.

If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.


image.png (19.9 KiB)
image.png (449.8 KiB)
image.png (20.5 KiB)
image.png (505.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

it works. Thanks for your quick reply.

0 Votes 0 ·

How do I color maps layers like the attached image30650-map.png


0 Votes 0 ·
map.png (17.0 KiB)
rbrundritt avatar image
0 Votes"
rbrundritt answered

Custom map styles are not currently supported. But if you have a couple minor changes you can do something like this: https://stackoverflow.com/questions/64232955/azure-maps-removing-country-borders-from-map

Here is a tool to inspect the underlying map: https://azuremapscodesamples.azurewebsites.net/?search=inspect

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.