Skip to content
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
  • [new Query(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.util-3.query.query.md#new query(options))
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