Benutzertools

Site-Tools


manuell:erweitert:Anpassung:Aktionen

Dies ist eine alte Überarbeitung des Dokuments!


Locus-Aktionen

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 for processing. The XML file describes what to do.

Locus Map unterstützt derzeit nur eine Aktion: herunterladen pokračovat :

So erreichen

Die gesamte Datei, die Sie Locus zur Verfügung stellen, ist eine XML-Datei mit dieser Syntax

...

Wo locusAktionen kann eine oder mehrere enthalten Aktion objects, that will do required work.

To make Locus correctly handling this file, you simply construct URL to this file by following syntax (example)

locus-actions://https/dl.dropbox.com/u/12579512/my_directory/test.xml

As you can see, simply change scheme to Locus-Aktionen and default scheme change to part of base URL separated only by one slash. Locus will handle this link in simple way:

  1. entfernen Locus-Aktionen Etikett
  2. change first part into new scheme

Herunterladen

Action object that serve to download files into Locus directory

Beispielsyntax ist

 ...

Wo

  • herunterladen - is core tag, that identify this action
  • Quelle - URL to source file. If contain Größe und Datum parameters, download file be checked and not downloaded if already exists
    • Größe - (optional) size of file in bytes
    • Datum - (optional) date of last edit in format jjjj-MM-tt_HH-mm-ss. Some phones have problems with setting correct time to downloaded file. Highly recommended is to set only Größe for comparing already downloaded files,
  • dest - relative path (to Locus root), where to put new file
  • nachdem - special action that is performed after download. Currently supported is
    • Karte aktualisieren - useful if you download new personal or vector maps. This called on last map (in case you download more maps), refresh list of maps without need to restart Locus
    • Daten importieren - immediately after file is downloaded, Locus will start normal import process of this file
    • Anzeigedaten - immediately after download, Locus will load and display downloaded file on map. Data will be displayed only temporarily, so if you want to store them permanently, use Daten importieren zu erhalten
    • Extrakt - extract downloaded file. Directory is the one, used for download.
    • Quelle löschen - allow to delete downloaded file. This is useful mainly if you download zipped file and after extract, you want to remove this file.

TIPPS

  • Kartendatei herunterladen (zip-Archiv) - Sie können diese Kombination verwenden extrahieren|Quelle löschen|Zuordnung aktualisieren, which extract file after download, delete original file and finally refresh maps list.
  • Download-Datei zum Import bereit (zip-Archiv) - Sie können diese Kombination verwenden Daten extrahieren|importieren, which extract file after download and start import. In this case, it is suggested to set dest parameter to special Locus directory Cache/temp. This directory is from time to time cleared, so all unneeded files will be removed.
manual/advanced/customization/actions.1441292161.txt.gz · Letzte Änderung: 2015 09:03 (externe Bearbeitung)