OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.navigation.map_request_handler_stub.MapRequestHandlerStub Class Reference

Ignore semantic map requests. More...

Inheritance diagram for ui.navigation.map_request_handler_stub.MapRequestHandlerStub:
ui.navigation.map_request_handler_if.MapRequestHandlerIf

Public Member Functions

None request_follow (self, bool enabled)
 Enable or disable automatic map following.
None request_recenter (self)
 Recenter the map on the latest known follow position.
None request_center_on (self, GeoPoint position)
 Center the map on a geographic position.
None request_pan (self, float north_m, float east_m)
 Pan the map by geographic offsets.
None request_pan_screen (self, float right_px, float up_px)
 Request a camera pan in screen-relative pixels.
None request_zoom (self, float zoom_level)
 Set the requested map zoom level.
None request_bearing (self, float bearing_rad)
 Set the requested map bearing.
None request_pitch (self, float pitch_rad)
 Set the requested map camera pitch.
None request_poi_focus (self, str|None category)
 Highlight a semantic POI category or clear the focus.
None request_poi_results (self, tuple[MapMarker,...] markers, str category)
 Replace the dynamic nearby-POI marker set without changing the camera.
None request_style (self, str style_id)
 Select the active map style.

Detailed Description

Ignore semantic map requests.

Member Function Documentation

◆ request_bearing()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_bearing ( self,
float bearing_rad )

Set the requested map bearing.

Parameters
bearing_radClockwise map bearing in radians.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_center_on()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_center_on ( self,
GeoPoint position )

Center the map on a geographic position.

Parameters
positionGeographic position to place at the map center.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_follow()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_follow ( self,
bool enabled )

Enable or disable automatic map following.

Parameters
enabledTrue to follow the current position; False for manual camera control.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_pan()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_pan ( self,
float north_m,
float east_m )

Pan the map by geographic offsets.

Parameters
north_mNorthward offset in meters.
east_mEastward offset in meters.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_pan_screen()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_pan_screen ( self,
float right_px,
float up_px )

Request a camera pan in screen-relative pixels.

Parameters
right_pxHorizontal screen offset in pixels, positive to the right.
up_pxVertical screen offset in pixels, positive upward.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_pitch()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_pitch ( self,
float pitch_rad )

Set the requested map camera pitch.

Parameters
pitch_radCamera pitch in radians.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_poi_focus()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_poi_focus ( self,
str | None category )

Highlight a semantic POI category or clear the focus.

Parameters
categorySemantic POI category to highlight, or None to clear focus.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_poi_results()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_poi_results ( self,
tuple[MapMarker, ...] markers,
str category )

Replace the dynamic nearby-POI marker set without changing the camera.

Parameters
markersDynamic POI markers to present.
categorySemantic POI category represented by the markers.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_style()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_style ( self,
str style_id )

Select the active map style.

Parameters
style_idIdentifier of the map style to activate.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.

◆ request_zoom()

None ui.navigation.map_request_handler_stub.MapRequestHandlerStub.request_zoom ( self,
float zoom_level )

Set the requested map zoom level.

Parameters
zoom_levelMapLibre-compatible zoom level.

Reimplemented from ui.navigation.map_request_handler_if.MapRequestHandlerIf.


The documentation for this class was generated from the following file:
  • ui/navigation/map_request_handler_stub.py