This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:advanced:customization:actions [2015/05/21 16:02] – mstupka | manual:advanced:customization:actions [2015/10/23 10:15] (current) – mstupka | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Locus Actions ====== | ====== Locus Actions ====== | ||
| - | <WRAP box left> | + | This mysterious name hides a very simple way of providing an easy method |
| - | * Locus type: < | + | |
| - | * Last updated manual: **3.0.2** | + | |
| - | </ | + | |
| - | <WRAP todo round center 60%>This page is obsolete and will be reworked soon</ | + | |
| - | ===== Basic information ===== | + | |
| - | + | ||
| - | Below this mysterious name is hidden | + | |
| - | + | ||
| - | Locus currently support actions: **download** | + | |
| + | Locus Map currently supports only one action: **download** | ||
| ===== How to ===== | ===== How to ===== | ||
| - | Whole file you provide to Locus is XML file with this syntax | + | 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, change |
| - | - remove | + | |
| - | - change | + | - removes |
| + | - changes | ||
| ==== Download ==== | ==== Download ==== | ||
| - | Action object that serve to download | + | Action object that serves downloading |
| - | 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 | + | * **dest** - alternate |
| - | * **refreshMap** - useful if you download new personal or vector | + | * **after** - special action that is performed after download. Currently is 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 downloaded file. This is useful mainly if you download zipped file and after extract, | + | * **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)** | ||