MapLayer

class MapLayer(**properties: Any)

Superclasses: Layer, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

A Layer implementation that fetches tiles from a MapSource and draws them as a grid.

Constructors

class MapLayer
classmethod new(map_source: MapSource, viewport: Viewport) MapLayer
Parameters:
  • map_source

  • viewport

Properties

class MapLayer
props.map_source: MapSource

Signals

class MapLayer.signals
symbol_clicked(event: SymbolEvent) None

Emitted when a symbol in the map layer is clicked.

Added in version 1.1.

Parameters:

event – a SymbolEvent with details about the clicked symbol.