User Tools

Site Tools


manual:advanced:customization:actions

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:actions [2025/11/19 12:02] mstupkamanual:advanced:customization:actions [2025/11/19 20:35] (current) – [Event] menion
Line 5: Line 5:
 Locus Map currently supports only these actions: Locus Map currently supports only these actions:
   * **download**   * **download**
-  * **setMapVector** +  * **event** 
-  * **setMapVectorTheme**+
 ===== How to ===== ===== How to =====
  
Line 69: Line 69:
   * **Download file ready for import (zip archive)**  - you may use this combination **extract|importData**, which extracts the file after download and starts import. In this case, it is suggested to set the **dest**  parameter to the special Locus Map directory **cache/temp**. This directory is cleared from time to time, so all unneeded files are removed.   * **Download file ready for import (zip archive)**  - you may use this combination **extract|importData**, which extracts the file after download and starts import. In this case, it is suggested to set the **dest**  parameter to the special Locus Map directory **cache/temp**. This directory is cleared from time to time, so all unneeded files are removed.
  
 +==== Event====
 +
 +An action that triggers a certain action.
 +
 +Sample syntax is:
 +
 +<code>
 +<?xml version="1.0" encoding="utf-8"?>
 +<locusActions>
 +  <event>
 +    <key>setMapVector</key>
 +    <value><![CDATA[ /mapsVector/DownloadedMap.map ]]></value>
 +  </event>
 +</locusActions>
 +</code>
 +
 +__Where__
 +
 +  * **key**  - one of predefined types
 +      * __setMapVector__  - set a certain map file
 +      * __setMapVectorTheme__  - set a certain map theme
 +  * **value** - relative path to map or theme
manual/advanced/customization/actions.1763550157.txt.gz · Last modified: by mstupka