Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Output


featurescollection[ feature ]A collection of features.

...

changedatedateOnly get baselayers that were changed after this date
changetimetimeOnly get baselayers that were changed after this time

Output


layerscollection[ baselayer ]A collection of baselayers

...

Input


featurescollection[ feature ]A collection of features to create/update

...

Notice that when reading the features (using e.g. GISGetFeaturesByLayer) the returned features do not include details about the layer ID, but when writing the features (using e.g. GISCreateUpdateFeatures) each feature should include the layer ID in the layerref field.

Map features

See the feature object for more details about the feature object.

Feature types: 1=point, 2=points, 3=text, 11=line, 12=polyline, 21=rectangle, 22=shape, 23=circle, 100=group.

Feature type 1 - point/marker

The data field is a set containing the following name/value pairs:

namevalue typedescription
xfloatlongitude
yfloatlatitude
markerstringname of the marker to use, may be ignored
textstringText to display


The point/marker should be displayed with a suitable icon/marker and the text from the text field in the feature.

Feature type 12 - polyline/freehand

The data field is a set containing the following name/value pairs:

namevalue typedescription
pointscollection[xy]a collection of sets, each containing x and y
subtypestringeither “freehand” or “polyline”


A polyline is created by clicking on the screen once for each point. A freehand line is created by dragging - the app then adds a point a regular intervals.

colour1 is used for the colour of the circle. size is used for the linewidth (in pixels) of the circle.

Feature type 22 - shape

The data field is a set containing the following name/value pairs:

namevalue typedescription
pointscollection[xy]a collection of sets, each containing x and y


colour1 is used for the colour of the shape. size is used for the linewidth (in pixels) of the shape.

...

{"layerref":83,"datatype":22,"data":{"points":[{"x":27,"y":55},{"x":27.5,"y":55},{"x":27,"y":55.5}]},"colour1":"#ff00ff","size":2}

Feature type 23 - circle

The data field is a set containing the following name/value pairs:

namevalue typedescription
xfloatlongitude
yfloatlatitude
rfloatradius in degrees, eg. x=55 and r=1 means that the circle covers from x=54 to x=56.


colour1 is used for the colour of the circle. size is used for the linewidth (in pixels) of the circle.

...