Methods
-
connect(cback)
-
Connection dialog
Parameters:
Name Type Description cbackfunction
Type Definitions
-
centerOptions
-
Center options
Type:
- Object
Properties:
Name Type Argument Description centerArray.<number> <optional>
[longitude,latitude]
zoomnumber <optional>
zoom level if center or max zoom if extent
extentArray.<number> <optional>
the extent to fit [lonMin, latMin, lonMax, latMax]
layerIdnumber <optional>
id of a layer to fit if zoom is defined use it as max zoom
selectionboolean <optional>
to center on seleced features
offsetZoomnumber <optional>
zoom offset when layerId or selection (final zoom will be incremented by offsetZoom)
-
Condition
-
Condition for object selection
Type:
- Object
Properties:
Name Type Argument Default Description layerIdnumber <optional>
the layer to search in, default use the first layer
attrstring name of attribute to test
opstring operation name: '=','!=','<', '<=', '>=', '>', 'contain', '!contain', 'regexp' or '!regexp'
val* value to test
matchAllboolean <optional>
false match all conditions
useCaseboolean <optional>
false case sensitive
-
filterResult
-
Result of a filtering
Type:
- Object
Properties:
Name Type Description nbnumber number of features filtered (other features in the layer are hidden)
sizenumber total number of feaures
-
GeoJSONFeature
-
A feature in a GeoJSON format
Type:
- Object
Properties:
Name Type Description typestring 'feature'
gometryJSONGeometry feature geometry
propertiesObject a list of properties as key/value
-
JSONCoordinate
-
An array of numbers representing a lon,lat coordinate. Example: [16, 48].
Type:
- Array.<number>
-
JSONGeometry
-
JSON Geometry format
Type:
- Object
Properties:
Name Type Description typestring Geometry type: 'Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', or 'MultiPolygon'
coordinatesJSONCoordinate | Array.<JSONCoordinate> | Array.<Array.<JSONCoordinate>> list of coordinates
-
JSONLayer
-
Layer desciption as JSON object
Type:
- Object
Properties:
Name Type Description idnumber layer ID
namestring layer name
titlestring layer title
descriptionstring layer description
typestring 'image' or 'vector'
visibleboolean layer visibility
opacityboolean layer opacity [0,1]
displayInLayerSwitcherboolean the layer appears in the layer switcher or not
themestring layer theme
inviewboolean the layer is displayed in the thematic layer