Azure Maps 获取地图图像请求 returns 空白地图图像
Azure Maps Get Map Image Request returns a blank map image
我正在尝试使用 Azure Get Map Image API 调用。使用文档中的 "Try It!" 功能时,我得到状态 200(成功)。当我将请求放入浏览器时,返回了一张空白地图。
要求:
https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7¢er=-122.3927721%2047.568873&height=800&width=800&language=en&style=main
回复:
请指教。谢谢
我认为您的请求格式不正确。 center
查询参数需要在 long
和 lat
之间有一个 ,
(现在它有一个 space %20
)。
试试这个:
https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7¢er=-122.3927721,47.568873&height=800&width=800&language=en&style=main
我正在尝试使用 Azure Get Map Image API 调用。使用文档中的 "Try It!" 功能时,我得到状态 200(成功)。当我将请求放入浏览器时,返回了一张空白地图。
要求:
https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7¢er=-122.3927721%2047.568873&height=800&width=800&language=en&style=main
回复:
请指教。谢谢
我认为您的请求格式不正确。 center
查询参数需要在 long
和 lat
之间有一个 ,
(现在它有一个 space %20
)。
试试这个:
https://atlas.microsoft.com/map/static/png?subscription-key=<myApiKey>&api-version=1.0&layer=hybrid&zoom=7¢er=-122.3927721,47.568873&height=800&width=800&language=en&style=main