AgusMapsFlutterBindings class
Bindings for src/agus_maps_flutter.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- AgusMapsFlutterBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
AgusMapsFlutterBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
comaps_debug_check_point(
double lat, double lon) → void - Debug: Check if a lat/lon point is covered by any registered MWM
-
comaps_debug_list_mwms(
) → void - Debug: List all registered MWMs and their bounds to logcat
-
comaps_force_redraw(
) → void - Force a complete redraw by updating the map style. This clears all render groups and forces the BackendRenderer to re-request all tiles from scratch. Use this after registering map files to ensure tiles are loaded for newly registered regions.
-
comaps_init(
Pointer< Char> apkPath, Pointer<Char> storagePath) → void -
comaps_init_paths(
Pointer< Char> resourcePath, Pointer<Char> writablePath) → void -
comaps_invalidate(
) → void - Invalidate the current viewport to force tile reload
-
comaps_load_map_path(
Pointer< Char> path) → void -
comaps_register_single_map(
Pointer< Char> fullPath) → int - Register a single MWM map file directly by full path. This bypasses the version folder scanning and registers the map file directly with the rendering engine. Returns: 0 on success, -1 if framework not ready, -2 on exception, or MwmSet::RegResult value on registration failure
-
comaps_register_single_map_with_version(
Pointer< Char> fullPath, int version) → int - Register a single MWM map file directly by full path with explicit version.
-
comaps_scale(
double factor, double pixelX, double pixelY, int animated) → void - Scale (zoom) the map by a factor, centered on a specific pixel point. factor: Zoom factor (>1 zooms in, <1 zooms out). Use exp(scrollDelta) for smooth zooming. pixelX, pixelY: Screen coordinates to zoom towards (in physical pixels) animated: Whether to animate the zoom transition This is the preferred method for scroll wheel zoom on desktop platforms.
-
comaps_scroll(
double distanceX, double distanceY) → void - Scroll/pan the map by pixel distance distanceX, distanceY: Distance to scroll in physical pixels
-
comaps_set_view(
double lat, double lon, int zoom) → void -
comaps_touch(
int type, int id1, double x1, double y1, int id2, double x2, double y2) → void - Touch event handling type: 1=TOUCH_DOWN, 2=TOUCH_MOVE, 3=TOUCH_UP, 4=TOUCH_CANCEL id1, x1, y1: first touch pointer id2, x2, y2: second touch pointer (use -1 for id2 if single touch)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sum(
int a, int b) → int - A very short-lived native function.
-
sum_long_running(
int a, int b) → int - A longer lived native function, which occupies the thread calling it.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited