Use transport map.

This commit is contained in:
George Kaklamanos 2016-02-21 13:43:04 +02:00
parent 08df4c9705
commit b9ed5b7bf5

View file

@ -76,7 +76,12 @@ echo '['. $coordsGreen[$i][1] . ',' . $coordsGreen[$i][0] . ']];';
target: document.getElementById("mymap"),
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
source: new ol.source.OSM({
url: 'http://a.tile2.opencyclemap.org/transport/{z}/{x}/{y}.png',
attributions: [new ol.Attribution({
html: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'
})]
})
}),
vectorLayer
],