Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/web/www/routino/mapprops.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1239 - (show annotations) (download) (as text)
Sat Jan 19 17:23:38 2013 UTC (12 years, 1 month ago) by amb
File MIME type: application/javascript
File size: 2684 byte(s)
Added MapQuest as an optional map layer, added layer specific attributions to
mapprops.js.

1 ////////////////////////////////////////////////////////////////////////////////
2 /////////////////////////// Routino map properties /////////////////////////////
3 ////////////////////////////////////////////////////////////////////////////////
4
5 var mapprops={ // contains all properties for the map to be displayed.
6
7 // Default configuration:
8 // UK coordinate range
9 // West -11.0, South 49.5, East 2.0, North 61.0
10 // Zoom level 4 to 15
11
12 // EDIT THIS below to change the visible map limits
13
14 westedge: -11.0, // Minimum longitude (degrees)
15 eastedge: 2.0, // Maximum longitude (degrees)
16
17 southedge: 49.5, // Minimum latitude (degrees)
18 northedge: 61.0, // Maximum latitude (degrees)
19
20 zoomout: 4, // Minimum zoom
21 zoomin: 15, // Maximum zoom
22
23 // EDIT THIS above to change the visible map limits
24
25
26 // EDIT THIS below to change the map URL(s) and copyright notices
27
28 mapdata: [
29 {
30 label: "OpenStreetMap",
31 tileurl: ["http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
32 "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
33 "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"],
34 attribution: {
35 data_url: "http://www.openstreetmap.org/copyright",
36 data_text: "© OpenStreetMap contributors",
37 tile_url: "http://www.openstreetmap.org/copyright",
38 tile_text: "© OpenStreetMap"
39 }
40 },
41 {
42 label: "MapQuest",
43 tileurl: ["http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
44 "http://otile2.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
45 "http://otile3.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
46 "http://otile4.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg"],
47 attribution: {
48 data_url: "http://www.openstreetmap.org/copyright",
49 data_text: "© OpenStreetMap contributors",
50 tile_url: "http://www.mapquest.com/",
51 tile_text: "© MapQuest <img src=\"http://developer.mapquest.com/content/osm/mq_logo.png\">"
52 }
53 }
54 ],
55
56 // EDIT THIS above to change the map URL(s) and copyright notices
57
58
59 // EDIT THIS below to change the maximum number of markers
60
61 // The number of waypoints to include in the HTML
62 maxmarkers: 9
63
64 // EDIT THIS above to change the maximum number of markers
65
66 }; // end of map properties