gws.base.map
¶
Source code: gws.base.map
Submodules¶
Package Contents¶
- class gws.base.map.Config(*args, **kwargs)¶
Bases:
gws.Config
Map configuration
- center: gws.Point | None¶
Map center.
- coordinatePrecision: int | None¶
Precision for coordinates.
- crs: gws.CrsName | None = 'EPSG:3857'¶
Crs for this map.
- extent: gws.Extent | None¶
Map extent.
- extentBuffer: int | None¶
Extent buffer.
- layers: list[gws.ext.config.layer]¶
Collection of layers for this map.
- title: str = ''¶
Map title.
- wrapX: bool = False¶
Wrap the world horizontally.
- zoom: gws.gis.zoom.Config | None¶
Map scales and resolutions.
- class gws.base.map.Object¶
Bases:
gws.Map
Map object.
- wrapX: bool¶
- configure()¶
Configuration hook.
- props(user)¶
Generate a
Props
struct for this object.- Parameters:
user – The user for which the props should be generated.
- class gws.base.map.Props(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- center: gws.Point¶
- coordinatePrecision: int¶
- crs: str¶
- crsDef: str | None¶
- extent: gws.Extent¶
- initResolution: float¶
- resolutions: list[float]¶
- rootLayer: gws.base.layer.Props¶
- title: str = ''¶
- wrapX: bool¶