如何从“这里映射"基础图层中删除所有颜色? [英] How to remove all colors from Here Maps base layer?

查看:74
本文介绍了如何从“这里映射"基础图层中删除所有颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从此处映射"基础图层中删除所有颜色?我不想看到粉红色的高速公路或黄色的街道.我想要地图上的自定义灰色图层.

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.

推荐答案

"HERE Map Tile API" 允许您选择不同的样式,尽管您还不能完全自定义颜色选择.

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.

这是通过 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
});

这篇关于如何从“这里映射"基础图层中删除所有颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆