How to remove all colors from Here Maps base layer?

与世无争的帅哥 提交于 2020-01-06 08:41:14

问题


How to remove all colors from Here Maps base layer? I do not want to see the freeways in pink or the streets in yellow. I want a custom grey color layer on the map.


回答1:


The HERE Map Tile API lets you choose different styles though you cannot completely customize the color selection (yet).

For example, here is the reduced-day style that removes pink freeways and yellow streets.

This is how it's done with the JavaScript API:

//...create your own layer (with e.g. the "reduced" scheme
var reduced = platform.getMapTileService({
  type: 'base'
}).createTileLayer("maptile", "reduced.day", 256, "png8");

//Step 2: initialize a map using your custom map tile layer
var map = new H.Map(document.getElementById('mapp'), reduced, {
  center: {
    lat: 52.3,
    lng: 13.8
  },
  zoom: 10
});


来源:https://stackoverflow.com/questions/51487883/how-to-remove-all-colors-from-here-maps-base-layer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!