Azure Maps - 渲染 - 获取地图图像 - 如何将多种颜色应用于不同的图钉

Azure Maps - Render - Get Map Image - How to apply multiple colors to different pins

我在 Azure 地图的地图图像上的不同位置有两个图钉,当我对其应用颜色时,所有图钉都具有相同的颜色,我想对每个图钉应用不同的颜色,我使用的是 Azure Maps用于获取地图图像的 REST 服务。

URL:

https://atlas.microsoft.com/map/static/png?api-version=1.0&style=main&layer=basic&zoom=14&height=700&Width=700&center=-122.13230609893799,47.64599069048016&path=lcFF0000|lw2|la0.60|ra1000||-122.13230609893799 47.64599069048016&pins=default|la15+50|al0.66|lc003C62|co002D62||'Microsoft Corporate Headquarters'-122.14131832122801  47.64690503939462|'Microsoft Visitor Center'-122.136828 47.642224|'Microsoft Conference Center'-122.12552547454833 47.642940335653996|'Microsoft The Commons'-122.13687658309935  47.64452336193245&subscription-key={subscription-key}

将您的数据分成两个 pins 参数(您可以在 URL 中多次指定它)。例如:

https://atlas.microsoft.com/map/static/png?api-version=1.0&style=main&layer=basic&zoom=14&height=700&Width=700&center=-122.13230609893799,47.64599069048016&path=lcFF0000|lw2|la0.60|ra1000||-122.13230609893799 47.64599069048016&pins=default|la15+50|al0.66|lc003C62|co002D62||'Microsoft Corporate Headquarters'-122.14131832122801 47.64690503939462|'Microsoft Visitor Center'-122.136828 47.642224&pins=default|la15+50|al0.66|lcff0000|coff0000||'Microsoft Conference Center'-122.12552547454833 47.642940335653996|'Microsoft The Commons'-122.13687658309935 47.64452336193245&subscription-key={subscription-key}