]> git.street.me.uk Git - andy/viking.git/blob - doc/examples/external_tools.xml
Actually use the calculated scale factor in the viewport
[andy/viking.git] / doc / examples / external_tools.xml
1 <!-- This file is an example for viking's extension system. -->
2 <objects>
3   <!-- The VikWebtoolCenter allows to declare any Webtool using a logic based on center coordinates and zoom level value. -->
4   <object class="VikWebtoolCenter">
5     <property name="label">NLS: Historic Map of GB</property>
6     <property name="url">http://nls.tileserver.com?lat=%s&amp;lng=%s&amp;zoom=%d</property>
7   </object>
8   <!-- NB The JOSM link is built into the source code - see osm.c -->
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&amp;right=%s&amp;bottom=%s&amp;top=%s</property>
13   </object>
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) -->
31 </objects>