Skip to main content

MapPinTapCallbackType

Type Alias MapPinTapCallbackType 

Source
pub type MapPinTapCallbackType = extern "C" fn(RefAny, CallbackInfo, MapLatLon) -> Update;
Expand description

User hook fired when the user taps the map (a press + release at ~the same point, no pan/pinch). Receives the tapped MapLatLon (projected via MapWidget::latlon_at_px) so apps can drop a pin without wiring their own tap handling + projection. The backreference DI pattern (architecture.md).