Search code examples
restazureazure-maps

Azure Maps Get Map Image Request returns a blank map image


I'm trying to use the Azure Get Map Image API call. When using the "Try It!" feature in the documentation, I get a status 200 (success). When I put the request in the browser, a blank map is returned.

Request:

https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7&center=-122.3927721%2047.568873&height=800&width=800&language=en&style=main

Response: enter image description here

Please advise. Thank you


Solution

  • I think your request isn't formatted correctly. The center query param needs to have a , between the long and the lat (right now it has a space %20).

    Try this:

    https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7&center=-122.3927721,47.568873&height=800&width=800&language=en&style=main