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
220MLN_API mln_status
221mln_map_get_camera(mln_map* map, mln_camera_options* out_camera) MLN_NOEXCEPT;
222
237MLN_API mln_status
238mln_map_jump_to(mln_map* map, const mln_camera_options* camera) MLN_NOEXCEPT;
239
257 mln_map* map, const mln_camera_options* camera,
258 const mln_animation_options* animation
259) MLN_NOEXCEPT;
260
278 mln_map* map, const mln_camera_options* camera,
279 const mln_animation_options* animation
280) MLN_NOEXCEPT;
281
293MLN_API mln_status
294mln_map_move_by(mln_map* map, double delta_x, double delta_y) MLN_NOEXCEPT;
295
311 mln_map* map, double delta_x, double delta_y,
312 const mln_animation_options* animation
313) MLN_NOEXCEPT;
314
329 mln_map* map, double scale, const mln_screen_point* anchor
330) MLN_NOEXCEPT;
331
349 mln_map* map, double scale, const mln_screen_point* anchor,
350 const mln_animation_options* animation
351) MLN_NOEXCEPT;
352
365 mln_map* map, mln_screen_point first, mln_screen_point second
366) MLN_NOEXCEPT;
367
383 mln_map* map, mln_screen_point first, mln_screen_point second,
384 const mln_animation_options* animation
385) MLN_NOEXCEPT;
386
398MLN_API mln_status mln_map_pitch_by(mln_map* map, double pitch) MLN_NOEXCEPT;
399
415 mln_map* map, double pitch, const mln_animation_options* animation
416) MLN_NOEXCEPT;
417
428MLN_API mln_status mln_map_cancel_transitions(mln_map* map) MLN_NOEXCEPT;
429
446 mln_map* map, mln_lat_lng_bounds bounds,
447 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
448) MLN_NOEXCEPT;
449
467 mln_map* map, const mln_lat_lng* coordinates, size_t coordinate_count,
468 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
469) MLN_NOEXCEPT;
470
490 mln_map* map, const mln_geometry* geometry,
491 const mln_camera_fit_options* fit_options, mln_camera_options* out_camera
492) MLN_NOEXCEPT;
493
506 mln_map* map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
507) MLN_NOEXCEPT;
508
521 mln_map* map, const mln_camera_options* camera, mln_lat_lng_bounds* out_bounds
522) MLN_NOEXCEPT;
523
537MLN_API mln_status
538mln_map_get_bounds(mln_map* map, mln_bound_options* out_options) MLN_NOEXCEPT;
539
555MLN_API mln_status
556mln_map_set_bounds(mln_map* map, const mln_bound_options* options) MLN_NOEXCEPT;
557
572 mln_map* map, mln_free_camera_options* out_options
573) MLN_NOEXCEPT;
574
593 mln_map* map, const mln_free_camera_options* options
594) MLN_NOEXCEPT;
595
610 mln_map* map, mln_projection_mode* out_mode
611) MLN_NOEXCEPT;
612
630 mln_map* map, const mln_projection_mode* mode
631) MLN_NOEXCEPT;
632
648 mln_map* map, mln_lat_lng coordinate, mln_screen_point* out_point
649) MLN_NOEXCEPT;
650
666 mln_map* map, mln_screen_point point, mln_lat_lng* out_coordinate
667) MLN_NOEXCEPT;
668
685 mln_map* map, const mln_lat_lng* coordinates, size_t coordinate_count,
686 mln_screen_point* out_points
687) MLN_NOEXCEPT;
688
704 mln_map* map, const mln_screen_point* points, size_t point_count,
705 mln_lat_lng* out_coordinates
706) MLN_NOEXCEPT;
707
708#ifdef __cplusplus
709}
710#endif
711
712#endif // MAPLIBRE_NATIVE_C_CAMERA_H
mln_status
Definition base.h:37
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:190
Definition map.h:481
Definition map.h:206
Definition map.h:166
Definition map.h:230
Definition map.h:312
Definition map.h:475
Definition map.h:238
Definition map.h:985
Definition map.h:972
Definition map.h:960
Definition map.h:152