| 1 |
Description: Add additional layer for OpenCycleMap |
| 2 |
Author: Uwe Steinmann <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
|
| 5 |
--- a/web/www/routino/mapprops.js |
| 6 |
+++ b/web/www/routino/mapprops.js |
| 7 |
@@ -17,14 +17,14 @@ var mapprops={ // contains all propertie |
| 8 |
|
| 9 |
// EDIT THIS below to change the visible map limits |
| 10 |
|
| 11 |
- westedge: -11.0, // Minimum longitude (degrees) |
| 12 |
- eastedge: 2.0, // Maximum longitude (degrees) |
| 13 |
+ westedge: -180.0, // Minimum longitude (degrees) |
| 14 |
+ eastedge: 180.0, // Maximum longitude (degrees) |
| 15 |
|
| 16 |
- southedge: 49.5, // Minimum latitude (degrees) |
| 17 |
- northedge: 61.0, // Maximum latitude (degrees) |
| 18 |
+ southedge: -80.0, // Minimum latitude (degrees) |
| 19 |
+ northedge: 80.0, // Maximum latitude (degrees) |
| 20 |
|
| 21 |
- zoomout: 4, // Minimum zoom |
| 22 |
- zoomin: 15, // Maximum zoom |
| 23 |
+ zoomout: 2, // Minimum zoom |
| 24 |
+ zoomin: 16, // Maximum zoom |
| 25 |
|
| 26 |
// EDIT THIS above to change the visible map limits |
| 27 |
|
| 28 |
@@ -39,6 +39,19 @@ var mapprops={ // contains all propertie |
| 29 |
subdomains: ["a","b","c"] |
| 30 |
}, |
| 31 |
attribution: { |
| 32 |
+ data_url: "http://www.openstreetmap.org/copyright", |
| 33 |
+ data_text: "© OpenStreetMap contributors", |
| 34 |
+ tile_url: "http://www.openstreetmap.org/copyright", |
| 35 |
+ tile_text: "© OpenStreetMap" |
| 36 |
+ } |
| 37 |
+ }, |
| 38 |
+ { |
| 39 |
+ label: "OSM CycleMap", |
| 40 |
+ tiles: { |
| 41 |
+ url: "http://${s}.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", |
| 42 |
+ subdomains: ["a","b","c"] |
| 43 |
+ }, |
| 44 |
+ attribution: { |
| 45 |
data_url: "http://www.openstreetmap.org/copyright", |
| 46 |
data_text: "© OpenStreetMap contributors", |
| 47 |
tile_url: "http://www.openstreetmap.org/copyright", |