]>
Commit | Line | Data |
---|---|---|
29f1598c | 1 | <!-- This file is an example for viking's extension system. --> |
54b5d793 | 2 | <objects> |
29f1598c | 3 | <!-- The VikWebtoolCenter allows to declare any Webtool using a logic based on center coordinates and zoom level value. --> |
e2c4a855 | 4 | <object class="VikWebtoolCenter"> |
2540cdc2 RN |
5 | <property name="label">NLS: Historic Map of GB</property> |
6 | <property name="url">http://nls.tileserver.com?lat=%s&lng=%s&zoom=%d</property> | |
e2c4a855 | 7 | </object> |
2540cdc2 | 8 | <!-- NB The JOSM link is built into the source code - see osm.c --> |
29f1598c GB |
9 | <!-- The VikWebtoolBounds allows to declare any Webtool using a logic based on bounds coordinates. --> |
10 | <object class="VikWebtoolBounds"> | |
11 | <property name="label">Local port 8111 (eg JOSM)</property> | |
12 | <property name="url">http://localhost:8111/load_and_zoom?left=%s&right=%s&bottom=%s&top=%s</property> | |
13 | </object> | |
a3dcc49e RN |
14 | <!-- Built In - but this example uses 6 maps |
15 | Note you need to specify a different name compared to the built in one | |
16 | ATM You can't override built in ones. | |
17 | <object class="VikWebtoolFormat"> | |
18 | <property name="label">Geofabrik Map Compare x6</property> | |
19 | <property name="url">http://tools.geofabrik.de/mc/#%s/%s/%s&num=6</property> | |
20 | <property name="url_format_code">AOZ</property> | |
21 | </object> | |
22 | --> | |
23 | <!-- url_format_code describes the order and what each of the substitution values are in the URL --> | |
24 | <!-- B = Bottom of the current view i.e. minimum latitude --> | |
25 | <!-- L = Left of the current view i.e. minimum longitude --> | |
26 | <!-- T = Top of the current view i.e. maximum latitude --> | |
27 | <!-- R = Right of the current view i.e. maximum longitude --> | |
28 | <!-- A = center lAtitude of the current view --> | |
29 | <!-- O = center lOngitude of the current view --> | |
30 | <!-- Z = OSM Zoom value of the current view (http://wiki.openstreetmap.org/wiki/Zoom_levels) --> | |
54b5d793 | 31 | </objects> |