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
Next revisionBoth sides next revision
en:help:v2:maps:on-demand-create [2021/03/28 11:56] alpinequesten:help:v2:maps:on-demand-create [2021/05/03 18:02] – [Basic example] alpinequest
Line 35: Line 35:
 Note that the application will recognize the ''**{$x}**'', ''**{$y}**'' and ''**{$z}**'' variable and replace them with correct values. Note that the application will recognize the ''**{$x}**'', ''**{$y}**'' and ''**{$z}**'' variable and replace them with correct values.
  
-The source ''"**id**"'' field must be unique in the file, and contains only characters and numbers. It is used internally by the application to identify the data storage of the map.+The source ''"**id**"'' field must be unique in the file, and should only contain characters and numbers. It is used internally by the application to identify the data storage of the map.
  
 \\ \\
Line 75: Line 75:
 </aqx> </aqx>
 </file> </file>
 +
 +The optional ''"**type**"'' attribute allows to define the type of the map. If no preview is available, the application will use common preview based on the map type. Can be one of ''"**roads**"'', ''"**topo**"'', ''"**satellite**"'', ''"**hybrid**"'', ''"**nautical**"'', ''"**aeronautical**"'', ''"**historical**"'', ''"**hillshade**"'', ''"**contours**"''.
  
 An ''**<outline>**'' tag (pairs of longitudes/latitudes, space separated) can be used to define the area covered by the map. When the map is selected while another area is displayed, the application will ask the user if he wants to move the map over the covered area. An ''**<outline>**'' tag (pairs of longitudes/latitudes, space separated) can be used to define the area covered by the map. When the map is selected while another area is displayed, the application will ask the user if he wants to move the map over the covered area.
Line 83: Line 85:
 The ''**<update-delay>**'' tag indicates after how many time the stored map data should be updated if it's used again. The default is ''**None**'', meaning the application will never try to update the stored data. Must end with ''**D**'' (number of days), ''**W**'' (weeks), ''**M**'' (months) or ''**Y**'' (years). For example, ''**3M**'' means 3 months. Use ''**0D**'' to force the application to update the data on each display. The ''**<update-delay>**'' tag indicates after how many time the stored map data should be updated if it's used again. The default is ''**None**'', meaning the application will never try to update the stored data. Must end with ''**D**'' (number of days), ''**W**'' (weeks), ''**M**'' (months) or ''**Y**'' (years). For example, ''**3M**'' means 3 months. Use ''**0D**'' to force the application to update the data on each display.
  
-The optional ''"**type**"'' attribute allows to define the type of the map. If no preview is available, the application will use common preview based on the map type. Can be one of ''"**roads**"''''"**topo**"''''"**satellite**"''''"**hybrid**"''''"**nautical**"'', ''"**aeronautical**"'', ''"**historical**"'', ''"**hillshade**"'', ''"**contours**"''.+You can limit the number of threads used to download the map using the ''**<max-threads>**'' tag. The default and maximum value is ''**3**''
 + 
 +The ''**<key-url>**'' tag can be used to provide a link to the key (legend) of the map. The map key is available from the menu of a map. 
 + 
 +The ''**<user-agent>**'' and ''**<referer>**'' tags allow you to specify what is sent in the HTTP get headers when contacting the map server. 
  
 ==== Map layer ==== ==== Map layer ====
Line 206: Line 213:
 ==== Global parameters ==== ==== Global parameters ====
 \\ \\
-You can declare parameters at the file level, which may be useful to store a key or token that is used in multiple sources within the file.+You can declare parameters at the file level, which may be useful to store a key or token that is used in multiple places within the file.
  
 <code xml> <code xml>
Line 213: Line 220:
  
   <name>Test global parameter</name>   <name>Test global parameter</name>
-  +
   <param name="key">8451-5814-5311</param>   <param name="key">8451-5814-5311</param>
  
Line 222: Line 229:
     </zoom-levels>     </zoom-levels>
   </source>   </source>
-  +
   <source id="MAP02">   <source id="MAP02">
     <name>Map 2</name>     <name>Map 2</name>
Line 232: Line 239:
 </aqx> </aqx>
 </code> </code>
 +
 \\ \\