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&lng=%s&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&right=%s&bottom=%s&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>
|