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
en:help:v2:maps:on-demand-create [2019/05/01 09:45]
alpinequest
en:help:v2:maps:on-demand-create [2019/06/14 09:48]
alpinequest
Line 3: Line 3:
 ====== How to create a custom map? ====== ====== How to create a custom map? ======
 \\ \\
-The application uses an XML based format for its maps configuration. Files must have an ''"​**.aqx**"'' ​extention ​and be placed in the ''"​**[application folder]/cache/​custom-maps/​**"''​ folder.+The application uses an XML based format for its maps configuration. Files must have an ''"​**.aqx**"'' ​extension ​and be placed in the ''"​**[application folder]/datastore/​custom-maps/​**"''​ folder ​(you may need to create the ''"​**custom-maps/​**"''​ sub-folder if it doesn'​t exist).
  
 See [[en:​help:​v2:​settings:​storage#​how_to_locate_the_application_folder|how to locate the application folder here]]. See [[en:​help:​v2:​settings:​storage#​how_to_locate_the_application_folder|how to locate the application folder here]].
Line 131: Line 131:
  
 The ''"​**set**"''​ attribute defines the name of the custom variable, the ''"​**type**"''​ attribute tells how to display the variable (either ''"​**int**"'',​ ''"​**long**"'',​ ''"​**float**"''​ or ''"​**double**"''​). The ''"​**set**"''​ attribute defines the name of the custom variable, the ''"​**type**"''​ attribute tells how to display the variable (either ''"​**int**"'',​ ''"​**long**"'',​ ''"​**float**"''​ or ''"​**double**"''​).
 +
 +Most common functions and operators can be used, for example ''"​**abs(x)**"'',​ ''"​**sqrt(x)**"'',​ ''"​**hypot(x,​y)**"'',​ ''"​**cos(x)**"'',​ ''"​**charat(str,​index)**"'',​ ''"​**replace(str,​target,​replace)**"'',​ ''"​**deg_to_rad(x)**"'',​ ''"​**dist_eucl(x1,​y1,​x2,​y2)**"'',​ ''"​**md5(str)**"'',​ ''"​**rand_uni()**"'',​ ''"​**quadtree(x,​y,​z)**"'',​ etc.
  
 \\ \\
Line 170: Line 172:
       <​projection-offset-y>​-800000.0</​projection-offset-y><​!-- optional, default is 0 -->       <​projection-offset-y>​-800000.0</​projection-offset-y><​!-- optional, default is 0 -->
       <​tiles-size>​256</​tiles-size><​!-- optional, default is 256 -->       <​tiles-size>​256</​tiles-size><​!-- optional, default is 256 -->
-      <​tiles-bounds>​104,​80,​527,​423</​tiles-bounds><​!-- optional -->+      <​tiles-bounds>​104,​80,​527,​423</​tiles-bounds><​!-- optional, expressed as "min x,min y,max x,max y" ​-->
       <​referer>​http://​server.example.com/​wmts/</​referer><​!-- optional, default is empty -->       <​referer>​http://​server.example.com/​wmts/</​referer><​!-- optional, default is empty -->
       <​server>​http://​server.example.com/​wmts/​{$z}/​{$y}/​{$x}.png</​server>​       <​server>​http://​server.example.com/​wmts/​{$z}/​{$y}/​{$x}.png</​server>​

Choose language:

Online help