Namespace: ZoomToGeometry

ZoomToGeometry

Zooms to a given geometry.

Classes

ZoomToGeometry

Methods

calcExtent(feature){Array.<number>}

modules/zoomToGeometry/model.js, line 145
Calculates the extent on the basis of a transferred feature. With a multipolygon, the largest extent is taken.
Name Type Description
feature ol/feature Feature with one extension.
Returns:
extent to be zoom.

drawInsidePolygon(canvas, map){void}

modules/zoomToGeometry/model.js, line 203
Todo For it to be recognized as an inner polygon, it must be drawn counterclockwise.
Name Type Description
canvas * todo
map ol/map The map.

drawOutsidePolygon(canvas, size){void}

modules/zoomToGeometry/model.js, line 184
todo
Name Type Description
canvas * todo
size * todo

getGeometryFromWFS(name, attribute, layerInformation){void}

modules/zoomToGeometry/model.js, line 66
Fetches the data from WFS.
Name Type Description
name string Name of the feature to zoom to.
attribute string The attribute from the wfs.
layerInformation object All information from a layer to be fetched.

handlePostCompose(evt){void}

modules/zoomToGeometry/model.js, line 164
todo
Name Type Description
evt * todo

parseFeatures(data, name, attribute){boolean|ol/feature}

modules/zoomToGeometry/model.js, line 125
Searches a GML string for a specific feature.
Name Type Description
data object The GML String.
name string Name of the features.
attribute string GML attribute that is to be searched for the name.
Returns:
WFS feature.

setFeatureGeometry(value){void}

modules/zoomToGeometry/model.js, line 221
Setter for featureGeometry.
Name Type Description
value Array.<number> Geometry of a feature.

setIsRender(value){void}

modules/zoomToGeometry/model.js, line 230
Setter for isRender
Name Type Description
value * todo

zoomToFeature(data, name, attribute){void}

modules/zoomToGeometry/model.js, line 101
Zooms to the feature loaded by the WFS.
Name Type Description
data object The GML String.
name string Name of the features.
attribute string GML attribute that is to be searched for the name.
Fires:

zoomToGeometry(name, layerId, attribute){void}

modules/zoomToGeometry/model.js, line 53
Zooms to a geometry loaded from a WFS.
Name Type Description
name string Name of the feature to zoom to.
layerId string Id from WFS-layer.
attribute string The attribute from the wfs.

Events

RadioTriggerZoomToGeometrySetIsRender

devtools/jsdoc/events.js, line 2433
Todo
Listeners of This Event:

RadioTriggerZoomToGeometryZoomToGeometry

devtools/jsdoc/events.js, line 2428
Zooms the map to a geometry from wfs.
Listeners of This Event: