如何使用新的灰度贴图

How to use the new Grayscale maps

Azure maps blog 表示 Grayscale maps: A dark-gray map style is for users who want to have a darker scale representation of a map.

如何在 Javascript 实施中启用此功能?

请参阅 https://codepen.io/azuremaps/pen/WKOQRq 处的代码示例。我们将有 文档即将发布。

style: "grayscale_dark"

定义地图时可以设置style: "grayscale_dark"

var map = new atlas.Map("map", {
  center: mapCenterPosition,
  zoom: 15,
  style: "grayscale_dark"
});

您也可以只在地图上创建一个控件,允许您在不同模式之间切换:

map.addControl(new atlas.control.StyleControl(), { position: "top-right" });