Viewport
Superclasses: Object
Implemented Interfaces: Location
- Constructors:
Viewport(**properties)
new() -> Shumate.Viewport
Constructors
Methods
- class Viewport
-
- location_to_widget_coords(widget: Widget, latitude: float, longitude: float) tuple[float, float]
Gets the position on
widget
that correspond to the given latitude and longitude.- Parameters:
widget – a
Widget
that usesself
as viewportlatitude – the latitude
longitude – the longitude
- set_max_zoom_level(max_zoom_level: int) None
Set the maximal zoom level
- Parameters:
max_zoom_level – the maximal zoom level
- set_min_zoom_level(min_zoom_level: int) None
Set the minimal zoom level
- Parameters:
min_zoom_level – the minimal zoom level
Properties
- class Viewport