MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
projection.h
Go to the documentation of this file.
1
5
6#ifndef MAPLIBRE_NATIVE_C_PROJECTION_H
7#define MAPLIBRE_NATIVE_C_PROJECTION_H
8
9#include <stddef.h>
10
11#include "base.h"
12#include "map.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
39 mln_map map, mln_map_projection* out_projection
40) MLN_NOEXCEPT;
41
54MLN_API mln_status
55mln_map_projection_destroy(mln_map_projection projection) MLN_NOEXCEPT;
56
72 mln_map_projection projection, mln_camera_options* out_camera
73) MLN_NOEXCEPT;
74
88 mln_map_projection projection, const mln_camera_options* camera
89) MLN_NOEXCEPT;
90
107 mln_map_projection projection, const mln_lat_lng* coordinates,
108 size_t coordinate_count, mln_edge_insets padding
109) MLN_NOEXCEPT;
110
128 mln_map_projection projection, mln_buffer_view geometry,
129 mln_edge_insets padding
130) MLN_NOEXCEPT;
131
145 mln_map_projection projection, mln_lat_lng coordinate,
146 mln_screen_point* out_point
147) MLN_NOEXCEPT;
148
163 mln_map_projection projection, mln_screen_point point,
164 mln_lat_lng* out_coordinate
165) MLN_NOEXCEPT;
166
183 mln_map_projection projection, mln_screen_point point,
184 mln_lat_lng* out_coordinate
185) MLN_NOEXCEPT;
186
202 mln_map_projection projection, double latitude, double* out_meters_per_pixel
203) MLN_NOEXCEPT;
204
215 mln_lat_lng coordinate, mln_projected_meters* out_meters
216) MLN_NOEXCEPT;
217
228 mln_projected_meters meters, mln_lat_lng* out_coordinate
229) MLN_NOEXCEPT;
230
231#ifdef __cplusplus
232}
233#endif
234
235#endif // MAPLIBRE_NATIVE_C_PROJECTION_H
mln_status
Definition base.h:39
mln_status mln_lat_lng_for_projected_meters(mln_projected_meters meters, mln_lat_lng *out_coordinate)
mln_status mln_map_projection_set_camera(mln_map_projection projection, const mln_camera_options *camera)
mln_status mln_map_projection_set_visible_coordinates(mln_map_projection projection, const mln_lat_lng *coordinates, size_t coordinate_count, mln_edge_insets padding)
mln_status mln_map_projection_lat_lng_for_pixel_unwrapped(mln_map_projection projection, mln_screen_point point, mln_lat_lng *out_coordinate)
mln_status mln_map_projection_meters_per_pixel_at_latitude(mln_map_projection projection, double latitude, double *out_meters_per_pixel)
mln_status mln_map_projection_destroy(mln_map_projection projection)
mln_status mln_map_projection_lat_lng_for_pixel(mln_map_projection projection, mln_screen_point point, mln_lat_lng *out_coordinate)
mln_status mln_projected_meters_for_lat_lng(mln_lat_lng coordinate, mln_projected_meters *out_meters)
mln_status mln_map_projection_set_visible_geometry(mln_map_projection projection, mln_buffer_view geometry, mln_edge_insets padding)
mln_status mln_map_projection_get_camera(mln_map_projection projection, mln_camera_options *out_camera)
mln_status mln_map_projection_pixel_for_lat_lng(mln_map_projection projection, mln_lat_lng coordinate, mln_screen_point *out_point)
mln_status mln_map_projection_create(mln_map map, mln_map_projection *out_projection)
Definition base.h:103
Definition map.h:224
Definition map.h:216
Definition map.h:340
Definition map.h:865
Definition map.h:210