User Tools

Site Tools


manual:advanced:customization:online_maps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:advanced:customization:online_maps [2017/08/14 15:45]
mstupka [Disabling map downloading limit]
manual:advanced:customization:online_maps [2019/07/03 16:33] (current)
mstupka
Line 24: Line 24:
           <name>OSM</name>           <name>OSM</name>
           <mode>background</mode>           <mode>background</mode>
-          <url><![CDATA[http://tiles.openpistemap.org/nocontours/{z}/{x}/{y}.png]]></url>+          <url><![CDATA[http://tiles.openpistemap.org/nocontours/{z}/{x}/{y}.png?v={ts}]]></url>
           <zoomPart>{z}-8</zoomPart>           <zoomPart>{z}-8</zoomPart>
           <zoomMin>8</zoomMin>           <zoomMin>8</zoomMin>
           <zoomMax>24</zoomMax>           <zoomMax>24</zoomMax>
           <tileSize>256</tileSize>           <tileSize>256</tileSize>
 +          <tileScale dpi="0" multi="2.0" replace="19" />
           <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>           <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
        </provider>        </provider>
Line 34: Line 35:
           <name>OSM</name>           <name>OSM</name>
           <mode>contours</mode>           <mode>contours</mode>
-          <url><![CDATA[http://tiles.openpistemap.org/contours-only/{z}/{x}/{y}.png]]></url>+          <url><![CDATA[http://tiles.openpistemap.org/contours-only/{z}/{x}/{y}.png?v={ts}]]></url>
           <zoomPart>{z}-8</zoomPart>           <zoomPart>{z}-8</zoomPart>
           <zoomMin>8</zoomMin>           <zoomMin>8</zoomMin>
           <zoomMax>24</zoomMax>           <zoomMax>24</zoomMax>
           <tileSize>256</tileSize>           <tileSize>256</tileSize>
 +          <tileScale dpi="0" multi="2.0" replace="19" />
           <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>           <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
        </provider>        </provider>
Line 44: Line 46:
           <name>OSM</name>           <name>OSM</name>
           <mode>OpenPiste</mode>           <mode>OpenPiste</mode>
-          <url><![CDATA[http://tiles2.openpistemap.org/landshaded/{z}/{x}/{y}.png]]></url>+          <url><![CDATA[http://tiles2.openpistemap.org/landshaded/{z}/{x}/{y}.png?v={ts}]]></url>
           <zoomPart>{z}-8</zoomPart>           <zoomPart>{z}-8</zoomPart>
           <zoomMin>8</zoomMin>           <zoomMin>8</zoomMin>
           <zoomMax>24</zoomMax>           <zoomMax>24</zoomMax>
           <tileSize>256</tileSize>           <tileSize>256</tileSize>
 +          <tileScale dpi="0" multi="2.0" replace="19" />
           <countries>World</countries>           <countries>World</countries>
           <usage>hiking,ski</usage>           <usage>hiking,ski</usage>
Line 77: Line 80:
     * **{y}** - replaces  Y tile     * **{y}** - replaces  Y tile
     * **{z}** - replaces zoom level after **zoomPart** computation is applied     * **{z}** - replaces zoom level after **zoomPart** computation is applied
 +    * **{ts}** -  tileScale replaces value
     * **{s}** (optional) - replaces the server text     * **{s}** (optional) - replaces the server text
   * **serverPart** - {s} item can be defined in the main url. In serverPart an array of items can then be defined  that will be randomly set as {s} item. So for example <serverPart>0;1;2</serverPart> and url started as <url><![CDATA[http://tiles{s}.open ..... {z}/{x}/{y}.png]]></url> will set every call to be randomly http://tiles0.open..., or http://tiles1.open..., or http://tiles2.open...\\ **ServerPart** parameter can be also defined by //x, y// and parameters in a simple mathematic formula:\\ <code> <serverPart>({x}+{y})%4</serverPart></code>   * **serverPart** - {s} item can be defined in the main url. In serverPart an array of items can then be defined  that will be randomly set as {s} item. So for example <serverPart>0;1;2</serverPart> and url started as <url><![CDATA[http://tiles{s}.open ..... {z}/{x}/{y}.png]]></url> will set every call to be randomly http://tiles0.open..., or http://tiles1.open..., or http://tiles2.open...\\ **ServerPart** parameter can be also defined by //x, y// and parameters in a simple mathematic formula:\\ <code> <serverPart>({x}+{y})%4</serverPart></code>
Line 83: Line 87:
   * **zoomMax** - maximum zoom   * **zoomMax** - maximum zoom
   * **tileSize** - size of tiles in pixels   * **tileSize** - size of tiles in pixels
 +  * **tileScale** - defines scaling factor (multi) to be 2x, DPI to which to apply (dpi, 0 = all devices) and value that will be replaced in url (//replace//, must not be empty)
   * **countries** - list of countries (separated by commas) relevant for the map. These values are used for separating maps in "Online map tab".   * **countries** - list of countries (separated by commas) relevant for the map. These values are used for separating maps in "Online map tab".
   * **usage** - list of possible usages of this map (separated by commas). Current options are: //aero, city, cycle, hiking, nautical, overlay, photo, road, ski, transport//. These values are used for separating maps in "Online map tab".   * **usage** - list of possible usages of this map (separated by commas). Current options are: //aero, city, cycle, hiking, nautical, overlay, photo, road, ski, transport//. These values are used for separating maps in "Online map tab".
manual/advanced/customization/online_maps.1502718330.txt.gz · Last modified: 2017/08/14 15:45 by mstupka