Use transport map.
This commit is contained in:
parent
08df4c9705
commit
b9ed5b7bf5
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
],
|
||||
|
|
Reference in a new issue