Table of Contents

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.

Locus Map currently supports only one action: download

How to

Whole file you provide to Locus is an XML file with this syntax:

<?xml version="1.0" encoding="utf-8"?>
<locusActions>
  <action>...</action>
</locusActions>

Where locusActions may contain one or more action objects that will do the required work.

To make Locus Map handle this file correctly, 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, change simply the scheme to locus-actions and the default scheme changes to a part of base URL separated only by one slash. Locus Map will handle this link in simple way:

  1. removes locus-actions tag
  2. changes first part into new scheme

Download

Action object that serves downloading files into Locus directory.

Sample syntax is:

<?xml version="1.0" encoding="utf-8"?>
<locusActions>
  <download>
    <source size="22075830" date="2012-06-29_19-11-54">
      <![CDATA[http://.../map.tar]]>
    </source>
    <dest><![CDATA[/maps/map.tar]]></dest>
    <after>...</after>
  </download>
</locusActions>

Where

TIPS