Skip to main content

MapObserver

Trait MapObserver 

Source
pub trait MapObserver {
Show 16 methods // Provided methods fn on_camera_will_change(&self, _mode: CameraChangeMode) { ... } fn on_camera_is_changing(&self) { ... } fn on_camera_did_change(&self, _mode: CameraChangeMode) { ... } fn on_will_start_loading_map(&self) { ... } fn on_did_finish_loading_map(&self) { ... } fn on_did_fail_loading_map(&self, _error: MapLoadError, _what: &str) { ... } fn on_will_start_rendering_frame(&self) { ... } fn on_did_finish_rendering_frame(&self, _status: &RenderFrameStatus) { ... } fn on_will_start_rendering_map(&self) { ... } fn on_did_finish_rendering_map(&self, _mode: RenderMode) { ... } fn on_did_finish_loading_style(&self) { ... } fn on_did_become_idle(&self) { ... } fn on_style_image_missing(&self, _id: &str) { ... } fn on_can_remove_unused_style_image(&self, _id: &str) -> bool { ... } fn on_render_error(&self, _error: ExceptionPtr) { ... } fn on_symbol_error(&self, _message: &str) { ... }
}
Expand description

MapObserver. All methods have the C++ default (empty) bodies.

Provided Methods§

Source

fn on_camera_will_change(&self, _mode: CameraChangeMode)

Source

fn on_camera_is_changing(&self)

Source

fn on_camera_did_change(&self, _mode: CameraChangeMode)

Source

fn on_will_start_loading_map(&self)

Source

fn on_did_finish_loading_map(&self)

Source

fn on_did_fail_loading_map(&self, _error: MapLoadError, _what: &str)

Source

fn on_will_start_rendering_frame(&self)

Source

fn on_did_finish_rendering_frame(&self, _status: &RenderFrameStatus)

Source

fn on_will_start_rendering_map(&self)

Source

fn on_did_finish_rendering_map(&self, _mode: RenderMode)

Source

fn on_did_finish_loading_style(&self)

Source

fn on_did_become_idle(&self)

Source

fn on_style_image_missing(&self, _id: &str)

Source

fn on_can_remove_unused_style_image(&self, _id: &str) -> bool

This method should return true if unused image can be removed, false otherwise. By default, unused image will be removed.

Source

fn on_render_error(&self, _error: ExceptionPtr)

Source

fn on_symbol_error(&self, _message: &str)

Called with a description of a corrupted symbol detected by the symbol guard checks.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§