package documentation

Undocumented

From __init__.py:

Class Config Zoom levels and resolutions
Function init_resolution Undocumented
Function resolutions_from_bounds Undocumented
Function resolutions_from_config Undocumented
Function resolutions_from_source_layers Undocumented
Constant OSM_RESOLUTIONS Undocumented
Constant OSM_SCALES Undocumented
Function _explicit_resolutions Undocumented
Function _res_or_scale Undocumented
OSM_SCALES: list[int] = (source)

Undocumented

Value
[150000000,
 70000000,
 35000000,
 15000000,
 10000000,
 4000000,
 2000000,
...
OSM_RESOLUTIONS = (source)

Undocumented

Value
list(reversed([units.scale_to_res(s) for s in OSM_SCALES]))
def resolutions_from_config(cfg, parent_resolutions: list[float] = None) -> list[float]: (source)

Undocumented

def resolutions_from_source_layers(source_layers: list[gws.SourceLayer], parent_resolutions: list[float]) -> list[float]: (source)

Undocumented

def resolutions_from_bounds(b: gws.Bounds, tile_size: int) -> list[float]: (source)

Undocumented

def init_resolution(cfg, resolutions): (source)

Undocumented

def _explicit_resolutions(cfg): (source)

Undocumented

def _res_or_scale(cfg, r, s): (source)

Undocumented