File: external_tools.xml

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (31 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!-- This file is an example for viking's extension system. -->
<objects>
  <!-- The VikWebtoolCenter allows to declare any Webtool using a logic based on center coordinates and zoom level value. -->
  <object class="VikWebtoolCenter">
    <property name="label">NLS: Historic Map of GB</property>
    <property name="url">https://nls.tileserver.com?lat=%s&amp;lng=%s&amp;zoom=%d</property>
  </object>
  <!-- NB The JOSM link is built into the source code - see osm.c -->
  <!-- The VikWebtoolBounds allows to declare any Webtool using a logic based on bounds coordinates. -->
  <object class="VikWebtoolBounds">
    <property name="label">Local port 8111 (eg JOSM)</property>
    <property name="url">http://localhost:8111/load_and_zoom?left=%s&amp;right=%s&amp;bottom=%s&amp;top=%s</property>
  </object>
  <!-- Built In - but this example uses 6 maps
       Note you need to specify a different name compared to the built in one
       ATM You can't override built in ones.
  <object class="VikWebtoolFormat">
    <property name="label">Geofabrik Map Compare x6</property>
    <property name="url">http://tools.geofabrik.de/mc/#%s/%s/%s&num=6</property>
    <property name="url_format_code">AOZ</property>
  </object>
  -->
  <!-- url_format_code describes the order and what each of the substitution values are in the URL -->
  <!-- B = Bottom of the current view  i.e. minimum latitude -->
  <!-- L = Left of the current view  i.e. minimum longitude -->
  <!-- T = Top of the current view  i.e. maximum latitude -->
  <!-- R = Right of the current view i.e. maximum longitude -->
  <!-- A = center lAtitude of the current view -->
  <!-- O = center lOngitude of the current view -->
  <!-- Z = OSM Zoom value of the current view (http://wiki.openstreetmap.org/wiki/Zoom_levels) -->
</objects>