Domanda

I am discovering usage of web maps by here.com (Navteq, Nokia) and wondering is there any option to perform color styling of the map (just like Google allows)?

È stato utile?

Soluzione

You can change the baseMapType to use any custom ImgTileProvider by updating the property as shown:

 map.set('baseMapType', baseMapProvider);

The Maps API for JavaScript already provides standard providers for Street Maps (Display.NORMAL), Satellite Imagery (Display.SATELLITE) and terrain maps (Display.TERRAIN). If you want to extend this further, you'll need to look at the Map Tile API which offers a wider range of colors and options (and explains how to create the appropriate URLs)

enter image description here

Normal Street Map

enter image description here

Fleet Map (add style=fleet to the URLs)

enter image description here

Night mode gray

enter image description here

Day mode grey

The following map tile example on the HERE Maps Github Pages showcases a wide range of available tile provider options.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top