Open WPS Platform

ZOO.Feature

Vector features use the ZOO.Geometry classes as geometry description.

Properties

NAME DESCRIPTION
fid {String}
geometry {ZOO.Geometry}
attributes {Object} This object holds arbitrary properties that describe the feature.
bounds {ZOO.Bounds} The box bounding that feature’s geometry, that property can be set by an ZOO.Format object when deserializing the feature, so in most cases it represents an information set by the server.

Functions

NAME DESCRIPTION
ZOO.Feature Create a vector feature.
destroy nullify references to prevent circular references and memory leaks
clone Create a clone of this vector feature.
move Moves the feature and redraws it at its new location

Properties

fid
{String}
geometry
{ZOO.Geometry}
attributes
{Object} This object holds arbitrary properties that describe the feature.
bounds
{ZOO.Bounds} The box bounding that feature’s geometry, that property can be set by an ZOO.Format object when deserializing the feature, so in most cases it represents an information set by the server.

Functions

ZOO.Feature

Create a vector feature.

Parameters

geometry {ZOO.Geometry} The geometry that this feature represents.
attributes {Object} An optional object that will be mapped to the attributes property.
destroy
destroy: function()

nullify references to prevent circular references and memory leaks

clone
clone: function ()

Create a clone of this vector feature. Does not set any non-standard properties.

Returns

{ZOO.Feature} An exact clone of this vector feature.

move
Moves the feature and redraws it at its new location