Namespace: ZoomToGeometry

ZoomToGeometry

Zooms to a given geometry.

Classes

ZoomToGeometry

Methods

calcExtent(feature){Array.<number>}

modules/zoomToGeometry/model.js, line 144
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 202
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 183
todo
Name Type Description
canvas * todo
size * todo

getGeometryFromWFS(name, attribute, layerInformation){void}

modules/zoomToGeometry/model.js, line 65
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.

handlePostrender(evt){void}

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

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

modules/zoomToGeometry/model.js, line 124
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 220
Setter for featureGeometry.
Name Type Description
value Array.<number> Geometry of a feature.

setIsRender(value){void}

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

zoomToFeature(data, name, attribute){void}

modules/zoomToGeometry/model.js, line 100
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 52
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 2427
Todo
Listeners of This Event:

RadioTriggerZoomToGeometryZoomToGeometry

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