gws.base.layer.vector

Base vector layer.

Source code: gws.base.layer.vector

Module Contents

class gws.base.layer.vector.Object

Bases: gws.base.layer.core.Object

Base vector layer.

Finds features through the layer’s models and renders them as SVG. The client loads the features from the mapGetFeatures command.

canRenderBox = False
canRenderSvg = True
canRenderTile = False
geometryCrs: gws.Crs | None = None

CRS of the layer’s feature geometries.

geometryType: gws.GeometryType | None = None

Geometry type of the layer’s features.

find_features(search, user)
props(user)
render_svg(lri)
render_svg_fragment(lri: gws.LayerRenderInput)

Render the features in the map view as SVG elements.

Labels are rendered from the feature.label template. For a rotated view, features are searched in the circumscribed square of the view extent.

Parameters:

lri – Render input with the map view, style and user.

Returns:

A list of SVG elements, or None if no features are found.