The Thunderforest Maps let you use map styles in your apps and on your websites.
You can have a free account see: Hobby Project
You can also buy it:
- Solo Developer
- Small Business
- Large Business
The maps come with these map layers:
- OpenCycleMap
- Transport
- Landscape
- Outdoors
- Transport Dark
- Spinal Map
- Pioneer
- Mobile Atlas
- Neighborhood
This is one example using the Pioneer layer map into old style, see the next image:
This is the source code to test it with your API key:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <!DOCTYPE html> <html> <head> <title>XYZ</title> <link rel="stylesheet" href="https://openlayers.org/en/v4.3.1/css/ol.css" type="text/css"> <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x --> <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame, Element.prototype.classList,URL"></script> <script src="https://openlayers.org/en/v4.3.1/build/ol.js"></script> </head> <body> <div id="map" class="map"></div> <script> var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.XYZ({ url: 'https://{a-c}.tile.thunderforest.com/pioneer/{z}/{x}/{y}.png' + '?apikey=YOUR_API_KEY_FROM_Thunderforest_Maps' }) }) ], view: new ol.View({ center: ol.proj.transform([26.3015,47.4616], 'EPSG:4326', 'EPSG:3857'), zoom: 15 }) }); </script> </body> </html> |