package documentation

Map render utilities

From __init__.py:

Function map_view_from_bbox Undocumented
Function map_view_from_center Undocumented
Function map_view_transformer Create a pixel transformer f(map_x, map_y) -> (pixel_x, pixel_y) for a view
Function output_to_html_element Undocumented
Function output_to_html_string Undocumented
Function render_map Undocumented
Constant MAX_DPI Undocumented
Class _Renderer Undocumented
Function _add_image Undocumented
Function _add_svg_elements Undocumented
Function _map_view Undocumented
Function _render_plane Undocumented
MAX_DPI: int = (source)

Undocumented

Value
1200
def map_view_from_center(size: gws.MSize, center: gws.Point, crs: gws.ICrs, dpi, scale, rotation=0) -> gws.MapView: (source)

Undocumented

def map_view_from_bbox(size: gws.MSize, bbox: gws.Extent, crs: gws.ICrs, dpi, rotation=0) -> gws.MapView: (source)

Undocumented

def _map_view(bbox, center, crs, dpi, rotation, scale, size): (source)

Undocumented

def map_view_transformer(view: gws.MapView): (source)

Create a pixel transformer f(map_x, map_y) -> (pixel_x, pixel_y) for a view

Undocumented

def _render_plane(rd: _Renderer, plane: gws.MapRenderInputPlane): (source)

Undocumented

def _add_image(rd: _Renderer, img, opacity): (source)

Undocumented

def _add_svg_elements(rd: _Renderer, elements, opacity): (source)

Undocumented

def output_to_html_element(mro: gws.MapRenderOutput, wrap='relative') -> gws.IXmlElement: (source)

Undocumented

def output_to_html_string(mro: gws.MapRenderOutput, wrap='relative') -> str: (source)

Undocumented