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.ObjectBase vector layer.
Finds features through the layer’s models and renders them as SVG. The client loads the features from the
mapGetFeaturescommand.- canRenderBox = False¶
- canRenderSvg = True¶
- canRenderTile = False¶
- 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.labeltemplate. 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
Noneif no features are found.