MapControls
class MapControls(component: Component, map: MapLibreMap, config: MapControls.Config = Config()) : MouseListener, MouseMotionListener, MouseWheelListener, KeyListener(source)
Handles user interactions (mouse and keyboard) for a MapLibre map.
Mouse controls:
Left drag: Pan the map
Mouse wheel: Zoom in/out
Right drag horizontal: Rotate the map
Right drag vertical: Tilt/pitch the map
Ctrl+Left drag: Alternative for rotate/tilt
Double-click: Zoom in at point (animated)
Shift+Double-click: Zoom out at point (animated)
Keyboard controls:
Arrow keys: Pan the map
+/- or =/- keys: Zoom in/out