Benutzertools

Site-Tools


Handbuch:advanced:customization:online_maps

Differenzen

Dies zeigt Ihnen die Unterschiede zwischen zwei Versionen der Seite.

Link zu dieser Vergleichsansicht

Beide Seiten vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
manual:advanced:customization:online_maps [2015/11/12 12:33] - mstupkamanual:advanced:customization:online_maps [2019/07/03 16:33] (Strom) - mstupka
Linie 24: Linie 24:
           <Name>OSM</Name>           <Name>OSM</Name>
           <Modus>background</Modus>           <Modus>background</Modus>
-          <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>
Linie 34: Linie 35:
           <Name>OSM</Name>           <Name>OSM</Name>
           <Modus>contours</Modus>           <Modus>contours</Modus>
-          <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>
Linie 44: Linie 46:
           <Name>OSM</Name>           <Name>OSM</Name>
           <Modus>OpenPiste</Modus>           <Modus>OpenPiste</Modus>
-          <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>
           <Verwendung>Wandern,ski</Verwendung>           <Verwendung>Wandern,ski</Verwendung>
Linie 77: Linie 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..., oder http://tiles1.open..., oder http://tiles2.open...+  * **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..., oder http://tiles1.open..., oder 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>
   * **zoomPart** - {z}-8 - syntax for recomputing correct zoom value for the request. This value is usually Zoom - minimum zoom, but can be different   * **zoomPart** - {z}-8 - syntax for recomputing correct zoom value for the request. This value is usually Zoom - minimum zoom, but can be different
   * **zoomMin** - minimum zoom   * **zoomMin** - minimum zoom
   * **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".
Linie 114: Linie 119:
 Another sample of custom online map can be Strava Global Heatmap XML file that we prepared together with our users. It contains cycling and running layers and can be downloaded {{:Handbuch:fortschrittlich:Anpassung:strava2.providers.zip|here >>}}. Just unzip it in Locus/KartenOnline/custom directory and enjoy!  Another sample of custom online map can be Strava Global Heatmap XML file that we prepared together with our users. It contains cycling and running layers and can be downloaded {{:Handbuch:fortschrittlich:Anpassung:strava2.providers.zip|here >>}}. Just unzip it in Locus/KartenOnline/custom directory and enjoy! 
 </WICKELN> </WICKELN>
 +===== Own Open Map Tile Server ===== 
 +==== Disabling map downloading limit ==== 
 +If you operate your own map tile server you may need to **cancel tile downloading limit** that is set in Locus by default in order to maintain decent downloading traffic per application: 
 +  - **Enable mod_headers**: sudo a2enmod-Header 
 +  - **Edit the Apache configuration file** (/usw/apache2/apache2.conf) and add at the end: Header set locus_disable_download_limit "WAHR"
manual/advanced/customization/online_maps.1447328035.txt.gz · Letzte Änderung: 2015 11:12 (externe Bearbeitung)