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 revisionPrevious revision
Next revision
Previous revision
manual:advanced:customization:online_maps [2015/09/03 12:56] mstupkamanual:advanced:customization:online_maps [2023/07/19 08:12] (current) – [How to obtain required info] mstupka
Line 5: Line 5:
 ===== Basic information ===== ===== Basic information =====
  
-  * **XML file** - contains description of Online map providers (more below). Name and path to this file on storage card (or internal memory) is ///CARD_ROOT/Locus/mapsOnline/custom/<somename>.xml// (you can have more than one xml in the folder, Locus Map will add all of them)+  * **XML file** - contains description of Online map providers (more below). Name and path to this file on storage card (or internal memory) is ///Locus/mapsOnline/custom/<somename>.xml// (you can have more than one xml in the folder, Locus Map will add all of them)
   * **PNG images (optional)** - for every map provider name. This icon is not required! It's just displayed next to the map name in the Map manager. Name of this icon should be the same as text in name tag.   * **PNG images (optional)** - for every map provider name. This icon is not required! It's just displayed next to the map name in the Map manager. Name of this icon should be the same as text in name tag.
  
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** - {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>
   * **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".
Line 111: Line 116:
  
 {{ :manual:advanced:customization:osm_requests.png?nolink |}} {{ :manual:advanced:customization:osm_requests.png?nolink |}}
 +
 +===== 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 headers
 +  - **Edit the Apache configuration file** (/etc/apache2/apache2.conf) and add at the end: Header set locus_disable_download_limit "true"
manual/advanced/customization/online_maps.1441277764.txt.gz · Last modified: 2015/09/03 12:56 by mstupka