简体   繁体   中英

Change OpenLayers map style

I am trying to create a map in OpenLayers. I have no problem with other APIs, but the map style is old. Also, there is another application named Snap (it's using OSM) that has a prettier style:

左图是 Snap,右图是我的地图

How can I change OpenLayers map style?

You have to change the layer being displayed or the map. Different API's provide different layers that might have multiple styles.

For example here: https://cloud.maptiler.com/maps/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM