gws.base.map.core
¶
Source code: gws.base.map.core
Module Contents¶
- class gws.base.map.core.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.core.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.core.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¶