This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| manual:advanced:customization:actions [2015/05/21 15:04] – created mstupka | manual:advanced:customization:actions [2025/11/19 20:35] (current) – [Event] menion | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Locus Actions ====== | ====== Locus Actions ====== | ||
| - | <WRAP box left> | + | This mysterious name hides a very simple way of providing an easy method of downloading data from your own web server to Locus Map (and probably other features will come later). The whole concept is based on an XML file that you provide to Locus Map for processing. The XML file describes what to do. |
| - | * Locus type: < | + | |
| - | * Last updated manual: **3.0.2** | + | |
| - | </ | + | |
| - | ===== Basic information ===== | + | Locus Map currently |
| - | + | * **download** | |
| - | Below this mysterious name is hidden very simple way, how to provide easy method for downloading data from your own web server to Locus, and probably other features later. Whole concept is based on XML file, that you " | + | * **event** |
| - | + | ||
| - | Locus currently | + | |
| ===== How to ===== | ===== How to ===== | ||
| - | Whole file you provide to Locus is XML file with this syntax | + | The whole file you provide to Locus is an XML file with this syntax: |
| - | | + | < |
| - | < | + | <?xml version=" |
| - | < | + | < |
| - | </ | + | < |
| + | </ | ||
| + | </code> | ||
| - | Where // | + | Where // |
| - | To make Locus correctly handling | + | To make Locus Map handle |
| - | | + | < |
| + | locus-actions:// | ||
| + | </ | ||
| - | As you can see, simply | + | As you can see, changing |
| - | - remove | + | |
| - | - change | + | - removes |
| + | - changes the first part into a new scheme | ||
| ==== Download ==== | ==== Download ==== | ||
| - | Action | + | An action |
| - | Sample syntax is | + | Sample syntax is: |
| - | | + | < |
| - | < | + | <?xml version=" |
| - | < | + | < |
| - | <source size=" | + | < |
| - | < | + | <source size=" |
| - | </ | + | < |
| - | < | + | </ |
| - | < | + | < |
| - | </ | + | < |
| - | </ | + | </ |
| + | </ | ||
| + | </code> | ||
| __Where__ | __Where__ | ||
| - | | + | |
| - | * **source** - URL to source file. If contain | + | |
| - | * **size** - (optional) size of file in bytes | + | * **source** |
| - | * **date** - (optional) date of last edit in format // | + | * **size** |
| - | * **dest** - relative | + | * **date** |
| - | * **after** - special action that is performed after download. Currently supported | + | * **dest** - alternate |
| - | * **refreshMap** - useful if you download new personal or vector | + | * **after** - special action that is performed after download. Currently supported: |
| - | * **importData** - immediately after file is downloaded, Locus will start normal | + | * **refreshMap** |
| - | * **displayData** - immediately after download, Locus will load and display | + | * **importData** |
| - | * **extract** - extract | + | * **displayData** |
| - | * **deleteSource** - allow to delete | + | * **extract** |
| + | * **deleteSource** | ||
| __TIPS__ | __TIPS__ | ||
| - | | + | |
| - | * **Download file ready for import (zip archive)** - you may use this combination **extract|importData**, | + | |
| + | * **Download file ready for import (zip archive)** | ||
| + | |||
| + | ==== Event==== | ||
| + | |||
| + | An action that triggers a certain action. | ||
| + | |||
| + | Sample syntax is: | ||
| + | |||
| + | < | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | __Where__ | ||
| + | |||
| + | * **key** | ||
| + | * __setMapVector__ | ||
| + | * __setMapVectorTheme__ | ||
| + | * **value** - relative path to map or theme | ||