Last updated

API / geotoolkit / map / util / Query / Query

Class: Query

util.Query.Query

This layer is a collection of geotoolkit shapes that will be displayed on a map Setting the limits will change the extents of the map.

Table of contents

Constructors
Methods
Css Properties
Name Type Description
geometryRectSpatial geometry in map coordinate system to define the query
geometry-heightnumberHeight
geometry-readonlybooleanReadonly
geometry-widthnumberWidth
geometry-xnumberLeft
geometry-ynumberTop
geometryPointSpatial geometry in map coordinate system to define the query
geometry-xnumberX coordinate
geometry-ynumberY coordinate
namestringName

Contents

Constructors

new Query(options)

new Query(options?)

Parameters

Name Type Description
Optional optionsOptionsoptions
Methods

getClassName

getClassName(): string

Returns

string


getFilter

getFilter(): (feature: AbstractFeature) => boolean

gets the filter for this query

Returns

fn

▸ (feature): boolean

gets the filter for this query

Parameters
Name Type
featureAbstractFeature
Returns

boolean


getGeometry

getGeometry(): Point | Rect

gets the geometry for this query

Returns

Point | Rect


getName

getName(): string

gets the name field for this query

Returns

string


getProperties

getProperties(): Options

Returns the properties for this query

Returns

Options

options


setFilter

setFilter(filter): Query

sets the filter for this query

Parameters

Name Type Description
filter(feature: AbstractFeature) => booleanfilter function

Returns

Query


setGeometry

setGeometry(geo): Query

sets the geometry for this query

Parameters

Name Type Description
geoRectgeometry

Returns

Query


setName

setName(name): Query

sets the name field for this query

Parameters

Name Type Description
namestringname

Returns

Query


setProperties

setProperties(properties?): Query

sets the search properties for this query

Parameters

Name Type Description
Optional propertiesOptionsoptions

Returns

Query

this


getClassName

Static getClassName(): string

Returns

string