This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:advanced:customization:actions [2015/10/23 10:15] – mstupka | manual:advanced:customization:actions [2025/11/19 20:35] (current) – [Event] menion | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Locus Actions ====== | ====== Locus Actions ====== | ||
| - | 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 XML file that you provide to Locus Map for processing. The XML file describes what to do. | + | 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 Map currently supports only these actions: | ||
| + | * **download** | ||
| + | * **event** | ||
| - | Locus Map currently supports only one action: **download** | ||
| ===== How to ===== | ===== How to ===== | ||
| - | Whole file you provide to Locus is an XML file with this syntax: | + | The whole file you provide to Locus is an XML file with this syntax: |
| < | < | ||
| Line 17: | Line 20: | ||
| Where // | Where // | ||
| - | To make Locus Map handle this file correctly, simply construct URL to this file by following syntax (example): | + | To make Locus Map handle this file correctly, simply construct |
| < | < | ||
| Line 23: | Line 26: | ||
| </ | </ | ||
| - | As you can see, change | + | As you can see, changing |
| - removes **locus-actions** | - removes **locus-actions** | ||
| - | - changes first part into new scheme | + | - changes |
| ==== Download ==== | ==== Download ==== | ||
| - | Action | + | An action |
| Sample syntax is: | Sample syntax is: | ||
| Line 50: | Line 53: | ||
| * **download** | * **download** | ||
| - | * **source** | + | * **source** |
| * **size** | * **size** | ||
| - | * **date** | + | * **date** |
| * **dest** - alternate path (to Locus root) where to put the new file | * **dest** - alternate path (to Locus root) where to put the new file | ||
| - | * **after** - special action that is performed after download. Currently | + | * **after** - special action that is performed after download. Currently supported: |
| - | * **refreshMap** | + | * **refreshMap** |
| - | * **importData** | + | * **importData** |
| - | * **displayData** | + | * **displayData** |
| - | * **extract** | + | * **extract** |
| - | * **deleteSource** | + | * **deleteSource** |
| __TIPS__ | __TIPS__ | ||
| - | * **Download map file (zip archive)** | + | * **Download map file (zip archive)** |
| - | * **Download file ready for import (zip archive)** | + | * **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 | ||