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
Next revision
Previous revision
Next revision Both sides next revision
manual:advanced:customization:online_maps [2015/11/12 12:33]
mstupka
manual:advanced:customization:online_maps [2017/08/14 15:44]
mstupka
Line 78: Line 78:
     * **{z}** - replaces zoom level after **zoomPart** computation is applied     * **{z}** - replaces zoom level after **zoomPart** computation is applied
     * **{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
Line 114: Line 114:
 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 {{:manual:advanced:customization:strava2.providers.zip|here >>}}. Just unzip it in Locus/mapsOnline/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 {{:manual:advanced:customization:strava2.providers.zip|here >>}}. Just unzip it in Locus/mapsOnline/custom directory and enjoy! 
 </WRAP> </WRAP>
 +===== 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.txt · Last modified: 2019/07/03 16:33 by mstupka