MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_CAMERA_H
7#define MAPLIBRE_NATIVE_C_CAMERA_H
8
9#include <stddef.h>
10#include <stdint.h>
11
12#include "base.h"
13#include "map.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
23
26
30
33
37
43
47
50
64MLN_API mln_status
65mln_map_set_debug_options(mln_map* map, uint32_t options) MLN_NOEXCEPT;
66
78MLN_API mln_status
79mln_map_get_debug_options(mln_map* map, uint32_t* out_options) MLN_NOEXCEPT;
80
92 mln_map* map, bool enabled
93) MLN_NOEXCEPT;
94
107 mln_map* map, bool* out_enabled
108) MLN_NOEXCEPT;
109
121MLN_API mln_status
122mln_map_is_fully_loaded(mln_map* map, bool* out_loaded) MLN_NOEXCEPT;
123
134MLN_API mln_status mln_map_dump_debug_logs(mln_map* map) MLN_NOEXCEPT;
135
150 mln_map* map, mln_map_viewport_options* out_options
151) MLN_NOEXCEPT;
152
168 mln_map* map, const mln_map_viewport_options* options
169) MLN_NOEXCEPT;
170
185 mln_map* map, mln_map_tile_options* out_options
186) MLN_NOEXCEPT;
187
204 mln_map* map, const mln_map_tile_options* options
205) MLN_NOEXCEPT;
206
222MLN_API mln_status
223mln_map_get_camera(mln_map* map, mln_camera_options* out_camera) MLN_NOEXCEPT;
224
239MLN_API mln_status
240mln_map_jump_to(mln_map* map, const mln_camera_options* camera) MLN_NOEXCEPT;
241
268 mln_map* map, const mln_camera_options* camera,
269 const mln_animation_options* animation
270) MLN_NOEXCEPT;
271
298 mln_map* map, const mln_camera_options* camera,
299 const mln_animation_options* animation
300) MLN_NOEXCEPT;
301
313MLN_API mln_status
314mln_map_move_by(mln_map* map, double delta_x, double delta_y) MLN_NOEXCEPT;
315
336 mln_map* map, double delta_x, double delta_y,
337 const mln_animation_options* animation
338) MLN_NOEXCEPT;
339
354 mln_map* map, double scale, const mln_screen_point* anchor
355) MLN_NOEXCEPT;
356
379 mln_map* map, double scale, const mln_screen_point* anchor,
380 const mln_animation_options* animation
381) MLN_NOEXCEPT;
382
395 mln_map* map, mln_screen_point first, mln_screen_point second
396) MLN_NOEXCEPT;
397
418 mln_map* map, mln_screen_point first, mln_screen_point second,
419 const mln_animation_options* animation
420) MLN_NOEXCEPT;
421
433MLN_API mln_status mln_map_pitch_by(mln_map* map, double pitch) MLN_NOEXCEPT;
434
455 mln_map* map, double pitch, const mln_animation_options* animation
456) MLN_NOEXCEPT;
457
472MLN_API mln_status mln_map_cancel_transitions(mln_map* map) MLN_NOEXCEPT;
473
490 mln_map* map, mln_lat_lng_bounds bounds,
491 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
492) MLN_NOEXCEPT;
493
511 mln_map* map, const mln_lat_lng* coordinates, size_t coordinate_count,
512 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
513) MLN_NOEXCEPT;
514
534 mln_map* map, const mln_geometry* geometry,
535 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
536) MLN_NOEXCEPT;
537
550 mln_map* map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
551) MLN_NOEXCEPT;
552
565 mln_map* map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
566) MLN_NOEXCEPT;
567
584MLN_API mln_status
585mln_map_get_bounds(mln_map* map, mln_bound_options* out_options) MLN_NOEXCEPT;
586
605MLN_API mln_status
606mln_map_set_bounds(mln_map* map, const mln_bound_options* options) MLN_NOEXCEPT;
607
622 mln_map* map, mln_free_camera_options* out_options
623) MLN_NOEXCEPT;
624
643 mln_map* map, const mln_free_camera_options* options
644) MLN_NOEXCEPT;
645
660 mln_map* map, mln_projection_mode* out_mode
661) MLN_NOEXCEPT;
662
680 mln_map* map, const mln_projection_mode* mode
681) MLN_NOEXCEPT;
682
698 mln_map* map, mln_lat_lng coordinate, mln_screen_point* out_point
699) MLN_NOEXCEPT;
700
716 mln_map* map, mln_screen_point point, mln_lat_lng* out_coordinate
717) MLN_NOEXCEPT;
718
735 mln_map* map, const mln_lat_lng* coordinates, size_t coordinate_count,
736 mln_screen_point* out_points
737) MLN_NOEXCEPT;
738
754 mln_map* map, const mln_screen_point* points, size_t point_count,
755 mln_lat_lng* out_coordinates
756) MLN_NOEXCEPT;
757
758#ifdef __cplusplus
759}
760#endif
761
762#endif // MAPLIBRE_NATIVE_C_CAMERA_H
mln_status
Definition base.h:39
mln_status mln_map_move_by(mln_map *map, double delta_x, double delta_y)
mln_status mln_map_rotate_by(mln_map *map, mln_screen_point first, mln_screen_point second)
mln_status mln_map_pitch_by(mln_map *map, double pitch)
mln_status mln_map_fly_to(mln_map *map, const mln_camera_options *camera, const mln_animation_options *animation)
mln_status mln_map_lat_lng_bounds_for_camera(mln_map *map, const mln_camera_options *camera, mln_lat_lng_bounds *out_bounds)
mln_status mln_map_camera_for_lat_lngs(mln_map *map, const mln_lat_lng *coordinates, size_t coordinate_count, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
mln_status mln_map_lat_lng_for_pixel(mln_map *map, mln_screen_point point, mln_lat_lng *out_coordinate)
mln_animation_options mln_animation_options_default(void)
mln_status mln_map_is_fully_loaded(mln_map *map, bool *out_loaded)
mln_status mln_map_get_camera(mln_map *map, mln_camera_options *out_camera)
mln_status mln_map_pixels_for_lat_lngs(mln_map *map, const mln_lat_lng *coordinates, size_t coordinate_count, mln_screen_point *out_points)
mln_status mln_map_pixel_for_lat_lng(mln_map *map, mln_lat_lng coordinate, mln_screen_point *out_point)
mln_status mln_map_move_by_animated(mln_map *map, double delta_x, double delta_y, const mln_animation_options *animation)
mln_camera_fit_options mln_camera_fit_options_default(void)
mln_status mln_map_get_free_camera_options(mln_map *map, mln_free_camera_options *out_options)
mln_status mln_map_set_bounds(mln_map *map, const mln_bound_options *options)
mln_status mln_map_set_projection_mode(mln_map *map, const mln_projection_mode *mode)
mln_status mln_map_get_viewport_options(mln_map *map, mln_map_viewport_options *out_options)
mln_status mln_map_pitch_by_animated(mln_map *map, double pitch, const mln_animation_options *animation)
mln_status mln_map_get_bounds(mln_map *map, mln_bound_options *out_options)
mln_status mln_map_set_tile_options(mln_map *map, const mln_map_tile_options *options)
mln_status mln_map_get_tile_options(mln_map *map, mln_map_tile_options *out_options)
mln_free_camera_options mln_free_camera_options_default(void)
mln_status mln_map_dump_debug_logs(mln_map *map)
mln_status mln_map_set_rendering_stats_view_enabled(mln_map *map, bool enabled)
mln_status mln_map_scale_by_animated(mln_map *map, double scale, const mln_screen_point *anchor, const mln_animation_options *animation)
mln_status mln_map_get_projection_mode(mln_map *map, mln_projection_mode *out_mode)
mln_status mln_map_rotate_by_animated(mln_map *map, mln_screen_point first, mln_screen_point second, const mln_animation_options *animation)
mln_bound_options mln_bound_options_default(void)
mln_camera_options mln_camera_options_default(void)
mln_status mln_map_set_viewport_options(mln_map *map, const mln_map_viewport_options *options)
mln_status mln_map_scale_by(mln_map *map, double scale, const mln_screen_point *anchor)
mln_status mln_map_get_rendering_stats_view_enabled(mln_map *map, bool *out_enabled)
mln_status mln_map_set_free_camera_options(mln_map *map, const mln_free_camera_options *options)
mln_status mln_map_ease_to(mln_map *map, const mln_camera_options *camera, const mln_animation_options *animation)
mln_projection_mode mln_projection_mode_default(void)
mln_map_viewport_options mln_map_viewport_options_default(void)
mln_status mln_map_set_debug_options(mln_map *map, uint32_t options)
mln_status mln_map_cancel_transitions(mln_map *map)
mln_status mln_map_jump_to(mln_map *map, const mln_camera_options *camera)
mln_status mln_map_lat_lng_bounds_for_camera_unwrapped(mln_map *map, const mln_camera_options *camera, mln_lat_lng_bounds *out_bounds)
mln_status mln_map_get_debug_options(mln_map *map, uint32_t *out_options)
mln_status mln_map_camera_for_geometry(mln_map *map, const mln_geometry *geometry, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
mln_status mln_map_lat_lngs_for_pixels(mln_map *map, const mln_screen_point *points, size_t point_count, mln_lat_lng *out_coordinates)
mln_map_tile_options mln_map_tile_options_default(void)
mln_status mln_map_camera_for_lat_lng_bounds(mln_map *map, mln_lat_lng_bounds bounds, const mln_camera_fit_options *fit_options, mln_camera_options *out_camera)
Definition map.h:232
Definition map.h:559
Definition map.h:284
Definition map.h:200
Definition map.h:308
Definition map.h:390
Definition map.h:553
Definition map.h:316
Definition map.h:1064
Definition map.h:1051
Definition map.h:1039
Definition map.h:186