MapLibre Native Core
|
Namespaces | |
actor | |
debug | |
detail | |
gfx | |
gl | |
platform | |
shaders | |
style | |
util | |
Typedefs | |
using | AnnotationID = uint64_t |
using | AnnotationIDs = std::vector< AnnotationID > |
using | ShapeAnnotationGeometry = variant< LineString< double >, Polygon< double >, MultiLineString< double >, MultiPolygon< double > > |
using | Annotation = variant< SymbolAnnotation, LineAnnotation, FillAnnotation > |
using | EnumType = uint32_t |
using | OfflineRegionDefinition = variant< OfflineTilePyramidRegionDefinition, OfflineGeometryRegionDefinition > |
using | OfflineRegionMetadata = std::vector< uint8_t > |
using | OfflineRegions = std::vector< OfflineRegion > |
using | Clock = std::chrono::steady_clock |
using | Seconds = std::chrono::seconds |
using | Milliseconds = std::chrono::milliseconds |
using | TimePoint = Clock::time_point |
using | Duration = Clock::duration |
using | Timestamp = std::chrono::time_point< std::chrono::system_clock, Seconds > |
template<class T , class E > | |
using | expected = nonstd::expected< T, E > |
template<class E > | |
using | unexpected = nonstd::unexpected_type< E > |
using | Value = mapbox::base::Value |
using | NullValue = mapbox::base::NullValue |
using | PropertyMap = mapbox::base::ValueObject |
using | FeatureIdentifier = mapbox::feature::identifier |
using | GeoJSONFeature = mapbox::feature::feature< double > |
using | FeatureState = mapbox::base::ValueObject |
using | FeatureStates = std::unordered_map< std::string, FeatureState > |
using | LayerFeatureStates = std::unordered_map< std::string, FeatureStates > |
using | FontStack = std::vector< std::string > |
using | FontStackHash = std::size_t |
using | ScreenCoordinate = mapbox::geometry::point< double > |
using | ScreenLineString = mapbox::geometry::line_string< double > |
using | ScreenBox = mapbox::geometry::box< double > |
using | GeoJSON = mapbox::geojson::geojson |
using | FeatureCollection = mapbox::geojson::feature_collection |
using | FeatureExtensionValue = mapbox::util::variant< Value, FeatureCollection > |
using | EmptyGeometry = mapbox::geometry::empty |
template<class T > | |
using | Point = mapbox::geometry::point< T > |
template<class T > | |
using | LineString = mapbox::geometry::line_string< T > |
template<class T > | |
using | Polygon = mapbox::geometry::polygon< T > |
template<class T > | |
using | MultiPoint = mapbox::geometry::multi_point< T > |
template<class T > | |
using | MultiLineString = mapbox::geometry::multi_line_string< T > |
template<class T > | |
using | MultiPolygon = mapbox::geometry::multi_polygon< T > |
template<class T > | |
using | LinearRing = mapbox::geometry::linear_ring< T > |
template<class T > | |
using | Geometry = mapbox::geometry::geometry< T > |
using | UnassociatedImage = Image< ImageAlphaMode::Unassociated > |
using | PremultipliedImage = Image< ImageAlphaMode::Premultiplied > |
using | AlphaImage = Image< ImageAlphaMode::Exclusive > |
template<class , class T > | |
using | ExpandToType = T |
template<typename T > | |
using | is_utf16char_like_pointer = std::integral_constant< bool, std::is_pointer_v< T > &&is_utf16char_like< typename std::remove_pointer< T >::type >::value > |
template<class TypeList , template< class > class Predicate> | |
using | FilteredTypeList = typename detail::TypeFilter< TypeList, Predicate >::Type |
template<class... Ts> | |
using | TypeListConcat = typename detail::TypeListConcat< Ts... >::Type |
template<typename... T> | |
using | variant = mapbox::util::variant< T... > |
using | vec2 = std::array< double, 2 > |
using | vec3 = std::array< double, 3 > |
using | vec3f = std::array< float, 3 > |
using | vec3i = std::array< int, 3 > |
using | vec4 = std::array< double, 4 > |
Functions | |
constexpr bool | operator== (const CameraOptions &a, const CameraOptions &b) |
constexpr bool | operator!= (const CameraOptions &a, const CameraOptions &b) |
MBGL_CONSTEXPR MapDebugOptions | operator| (MapDebugOptions lhs, MapDebugOptions rhs) |
MBGL_CONSTEXPR MapDebugOptions & | operator|= (MapDebugOptions &lhs, MapDebugOptions rhs) |
MBGL_CONSTEXPR bool | operator& (MapDebugOptions lhs, MapDebugOptions rhs) |
MBGL_CONSTEXPR MapDebugOptions & | operator&= (MapDebugOptions &lhs, MapDebugOptions rhs) |
MBGL_CONSTEXPR MapDebugOptions | operator~ (MapDebugOptions value) |
std::string | encodeOfflineRegionDefinition (const OfflineRegionDefinition &) |
OfflineRegionDefinition | decodeOfflineRegionDefinition (const std::string &) |
::std::ostream & | operator<< (::std::ostream &os, const CanonicalTileID &rhs) |
::std::ostream & | operator<< (::std::ostream &os, const OverscaledTileID &rhs) |
::std::ostream & | operator<< (::std::ostream &os, const UnwrappedTileID &rhs) |
template<typename Enum > | |
MBGL_CONSTEXPR Enum | operator| (Enum a, Enum b) |
template<typename Enum > | |
MBGL_CONSTEXPR Enum & | operator|= (Enum &a, Enum b) |
template<typename Enum > | |
MBGL_CONSTEXPR bool | operator& (Enum a, Enum b) |
template<typename Enum > | |
MBGL_CONSTEXPR Enum | operator~ (Enum value) |
bool | operator== (const Color &colorA, const Color &colorB) |
bool | operator!= (const Color &colorA, const Color &colorB) |
Color | operator* (const Color &color, float alpha) |
template<class T > | |
std::optional< T > | numericValue (const Value &value) |
std::optional< std::string > | featureIDtoString (const FeatureIdentifier &id) |
std::string | fontStackToString (const FontStack &) |
std::set< FontStack > | fontStacks (const std::vector< Immutable< style::Layer::Impl >> &) |
template<class S , class T > | |
Point< S > | convertPoint (const Point< T > &p) |
template<class T , typename F > | |
auto | forEachPoint (const Geometry< T > &g, F f) |
PremultipliedImage | decodeImage (const std::string &) |
std::string | encodePNG (const PremultipliedImage &) |
template<class T , class... Args> | |
Mutable< T > | makeMutable (Args &&... args) |
template<class S , class U > | |
Mutable< S > | staticMutableCast (const Mutable< U > &u) |
template<class S , class U > | |
Immutable< S > | staticImmutableCast (const Immutable< U > &u) |
template<class T , class Fn > | |
void | mutate (Immutable< T > &immutable, Fn &&fn) |
template<class T > | |
bool | operator== (const Range< T > &a, const Range< T > &b) |
template<class T > | |
bool | operator!= (const Range< T > &a, const Range< T > &b) |
constexpr bool | operator== (const Size &a, const Size &b) |
constexpr bool | operator!= (const Size &a, const Size &b) |
template<typename T > | |
constexpr auto | underlying_type (T t) -> typename std::underlying_type_t< T > |
template<class OutPointer , class InChar > | |
std::enable_if< is_utf16char_like< InChar >::value &&is_utf16char_like_pointer< OutPointer >::value, OutPointer >::type | utf16char_cast (InChar *in) |
Variables | |
constexpr const char * | API_KEY_KEY = "api-tkey" |
constexpr const char * | API_BASE_URL_KEY = "api-base-url" |
constexpr const char * | MAX_CONCURRENT_REQUESTS_KEY = "max-concurrent-requests" |
constexpr const char * | READ_ONLY_MODE_KEY = "read-only-mode" |
constexpr EventSeverity | disabledEventSeverities [] |
constexpr Event | disabledEvents [] |
constexpr EventPermutation | disabledEventPermutations [] |
using mbgl::AlphaImage = typedef Image<ImageAlphaMode::Exclusive> |
using mbgl::Annotation = typedef variant< SymbolAnnotation, LineAnnotation, FillAnnotation> |
Definition at line 65 of file annotation.hpp.
using mbgl::AnnotationID = typedef uint64_t |
Definition at line 14 of file annotation.hpp.
using mbgl::AnnotationIDs = typedef std::vector<AnnotationID> |
Definition at line 15 of file annotation.hpp.
using mbgl::Clock = typedef std::chrono::steady_clock |
Definition at line 12 of file chrono.hpp.
using mbgl::Duration = typedef Clock::duration |
Definition at line 18 of file chrono.hpp.
using mbgl::EmptyGeometry = typedef mapbox::geometry::empty |
Definition at line 18 of file geometry.hpp.
using mbgl::EnumType = typedef uint32_t |
using mbgl::ExpandToType = typedef T |
Definition at line 63 of file indexed_tuple.hpp.
using mbgl::expected = typedef nonstd::expected<T, E> |
Definition at line 8 of file expected.hpp.
using mbgl::FeatureCollection = typedef mapbox::geojson::feature_collection |
Definition at line 9 of file geojson.hpp.
using mbgl::FeatureExtensionValue = typedef mapbox::util::variant<Value, FeatureCollection> |
Definition at line 10 of file geojson.hpp.
using mbgl::FeatureIdentifier = typedef mapbox::feature::identifier |
Definition at line 14 of file feature.hpp.
using mbgl::FeatureState = typedef mapbox::base::ValueObject |
Definition at line 16 of file feature.hpp.
using mbgl::FeatureStates = typedef std::unordered_map<std::string, FeatureState> |
Definition at line 17 of file feature.hpp.
using mbgl::FilteredTypeList = typedef typename detail::TypeFilter<TypeList, Predicate>::Type |
Definition at line 59 of file type_list.hpp.
using mbgl::FontStack = typedef std::vector<std::string> |
Definition at line 13 of file font_stack.hpp.
using mbgl::FontStackHash = typedef std::size_t |
Definition at line 14 of file font_stack.hpp.
using mbgl::GeoJSON = typedef mapbox::geojson::geojson |
Definition at line 8 of file geojson.hpp.
using mbgl::GeoJSONFeature = typedef mapbox::feature::feature<double> |
Definition at line 15 of file feature.hpp.
using mbgl::Geometry = typedef mapbox::geometry::geometry<T> |
Definition at line 42 of file geometry.hpp.
using mbgl::is_utf16char_like_pointer = typedef std::integral_constant<bool, std::is_pointer_v<T> && is_utf16char_like<typename std::remove_pointer<T>::type>::value> |
Definition at line 21 of file traits.hpp.
using mbgl::LayerFeatureStates = typedef std::unordered_map<std::string, FeatureStates> |
Definition at line 18 of file feature.hpp.
using mbgl::LinearRing = typedef mapbox::geometry::linear_ring<T> |
Definition at line 39 of file geometry.hpp.
using mbgl::LineString = typedef mapbox::geometry::line_string<T> |
Definition at line 24 of file geometry.hpp.
using mbgl::Milliseconds = typedef std::chrono::milliseconds |
Definition at line 15 of file chrono.hpp.
using mbgl::MultiLineString = typedef mapbox::geometry::multi_line_string<T> |
Definition at line 33 of file geometry.hpp.
using mbgl::MultiPoint = typedef mapbox::geometry::multi_point<T> |
Definition at line 30 of file geometry.hpp.
using mbgl::MultiPolygon = typedef mapbox::geometry::multi_polygon<T> |
Definition at line 36 of file geometry.hpp.
using mbgl::NullValue = typedef mapbox::base::NullValue |
Definition at line 12 of file feature.hpp.
using mbgl::OfflineRegionDefinition = typedef variant<OfflineTilePyramidRegionDefinition, OfflineGeometryRegionDefinition> |
Definition at line 69 of file offline.hpp.
using mbgl::OfflineRegionMetadata = typedef std::vector<uint8_t> |
Definition at line 84 of file offline.hpp.
using mbgl::OfflineRegions = typedef std::vector<OfflineRegion> |
Definition at line 232 of file offline.hpp.
using mbgl::Point = typedef mapbox::geometry::point<T> |
Definition at line 21 of file geometry.hpp.
using mbgl::Polygon = typedef mapbox::geometry::polygon<T> |
Definition at line 27 of file geometry.hpp.
using mbgl::PremultipliedImage = typedef Image<ImageAlphaMode::Premultiplied> |
using mbgl::PropertyMap = typedef mapbox::base::ValueObject |
Definition at line 13 of file feature.hpp.
using mbgl::ScreenBox = typedef mapbox::geometry::box<double> |
using mbgl::ScreenCoordinate = typedef mapbox::geometry::point<double> |
using mbgl::ScreenLineString = typedef mapbox::geometry::line_string<double> |
using mbgl::Seconds = typedef std::chrono::seconds |
Definition at line 14 of file chrono.hpp.
using mbgl::ShapeAnnotationGeometry = typedef variant< LineString<double>, Polygon<double>, MultiLineString<double>, MultiPolygon<double> > |
Definition at line 25 of file annotation.hpp.
using mbgl::TimePoint = typedef Clock::time_point |
Definition at line 17 of file chrono.hpp.
using mbgl::Timestamp = typedef std::chrono::time_point<std::chrono::system_clock, Seconds> |
Definition at line 21 of file chrono.hpp.
using mbgl::TypeListConcat = typedef typename detail::TypeListConcat<Ts...>::Type |
Definition at line 62 of file type_list.hpp.
using mbgl::UnassociatedImage = typedef Image<ImageAlphaMode::Unassociated> |
using mbgl::unexpected = typedef nonstd::unexpected_type<E> |
Definition at line 11 of file expected.hpp.
using mbgl::Value = typedef mapbox::base::Value |
Definition at line 11 of file feature.hpp.
using mbgl::variant = typedef mapbox::util::variant<T...> |
Definition at line 17 of file variant.hpp.
using mbgl::vec2 = typedef std::array<double, 2> |
Definition at line 7 of file vectors.hpp.
using mbgl::vec3 = typedef std::array<double, 3> |
Definition at line 8 of file vectors.hpp.
using mbgl::vec3f = typedef std::array<float, 3> |
Definition at line 9 of file vectors.hpp.
using mbgl::vec3i = typedef std::array<int, 3> |
Definition at line 10 of file vectors.hpp.
using mbgl::vec4 = typedef std::array<double, 4> |
Definition at line 11 of file vectors.hpp.
|
strong |
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
Unknown | |
Point | |
LineString | |
Polygon |
Definition at line 11 of file geometry.hpp.
enum mbgl::FileSourceType : uint8_t |
Enumerator | |
---|---|
Asset | |
Database | |
FileSystem | |
Network | |
Mbtiles | |
ResourceLoader | Resource loader acts as a proxy and has logic for request delegation to Asset, Cache, and other file sources. |
Definition at line 19 of file file_source.hpp.
|
strong |
enum mbgl::MapChange : uint8_t |
Definition at line 7 of file change.hpp.
|
strong |
|
strong |
Enumerator | |
---|---|
StyleParseError | |
StyleLoadError | |
NotFoundError | |
UnknownError |
Definition at line 15 of file map_observer.hpp.
|
strong |
|
strong |
|
strong |
Enumerator | |
---|---|
Inactive | |
Active |
Definition at line 95 of file offline.hpp.
|
strong |
Enumerator | |
---|---|
Optional | |
Required |
Definition at line 10 of file tile_necessity.hpp.
|
strong |
Definition at line 45 of file geometry.hpp.
PremultipliedImage mbgl::decodeImage | ( | const std::string & | ) |
OfflineRegionDefinition mbgl::decodeOfflineRegionDefinition | ( | const std::string & | ) |
std::string mbgl::encodeOfflineRegionDefinition | ( | const OfflineRegionDefinition & | ) |
std::string mbgl::encodePNG | ( | const PremultipliedImage & | ) |
|
inline |
Definition at line 42 of file feature.hpp.
std::string mbgl::fontStackToString | ( | const FontStack & | ) |
auto mbgl::forEachPoint | ( | const Geometry< T > & | g, |
F | f | ||
) |
Definition at line 68 of file geometry.hpp.
Mutable<T> mbgl::makeMutable | ( | Args &&... | args | ) |
Definition at line 48 of file immutable.hpp.
void mbgl::mutate | ( | Immutable< T > & | immutable, |
Fn && | fn | ||
) |
Constrained mutation of an immutable reference. Makes a temporarily-mutable copy of the input Immutable using the inner type's copy constructor, runs the given callable on the mutable copy, and then freezes the copy and reassigns it to the input reference.
Note that other Immutables referring to the same inner instance are not affected; they continue to referencing the original immutable instance.
Definition at line 127 of file immutable.hpp.
std::optional<T> mbgl::numericValue | ( | const Value & | value | ) |
Definition at line 35 of file feature.hpp.
|
constexpr |
Definition at line 59 of file camera.hpp.
MBGL_CONSTEXPR bool mbgl::operator& | ( | Enum | a, |
Enum | b | ||
) |
Definition at line 21 of file bitmask_operations.hpp.
MBGL_CONSTEXPR bool mbgl::operator& | ( | MapDebugOptions | lhs, |
MapDebugOptions | rhs | ||
) |
MBGL_CONSTEXPR MapDebugOptions& mbgl::operator&= | ( | MapDebugOptions & | lhs, |
MapDebugOptions | rhs | ||
) |
::std::ostream& mbgl::operator<< | ( | ::std::ostream & | os, |
const CanonicalTileID & | rhs | ||
) |
::std::ostream& mbgl::operator<< | ( | ::std::ostream & | os, |
const OverscaledTileID & | rhs | ||
) |
::std::ostream& mbgl::operator<< | ( | ::std::ostream & | os, |
const UnwrappedTileID & | rhs | ||
) |
|
constexpr |
Definition at line 50 of file camera.hpp.
MBGL_CONSTEXPR Enum mbgl::operator| | ( | Enum | a, |
Enum | b | ||
) |
Definition at line 9 of file bitmask_operations.hpp.
MBGL_CONSTEXPR MapDebugOptions mbgl::operator| | ( | MapDebugOptions | lhs, |
MapDebugOptions | rhs | ||
) |
MBGL_CONSTEXPR Enum& mbgl::operator|= | ( | Enum & | a, |
Enum | b | ||
) |
Definition at line 15 of file bitmask_operations.hpp.
MBGL_CONSTEXPR MapDebugOptions& mbgl::operator|= | ( | MapDebugOptions & | lhs, |
MapDebugOptions | rhs | ||
) |
MBGL_CONSTEXPR Enum mbgl::operator~ | ( | Enum | value | ) |
Definition at line 27 of file bitmask_operations.hpp.
MBGL_CONSTEXPR MapDebugOptions mbgl::operator~ | ( | MapDebugOptions | value | ) |
Definition at line 114 of file immutable.hpp.
Definition at line 53 of file immutable.hpp.
|
constexpr |
Definition at line 11 of file traits.hpp.
std::enable_if<is_utf16char_like<InChar>::value && is_utf16char_like_pointer<OutPointer>::value, OutPointer>::type mbgl::utf16char_cast | ( | InChar * | in | ) |
Definition at line 25 of file traits.hpp.
|
constexpr |
Property name to set / get base url. type: std::string
Definition at line 107 of file file_source.hpp.
|
constexpr |
Property name to set / get an access token. type: std::string
Definition at line 103 of file file_source.hpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Property name to set / get maximum number of concurrent requests. type: unsigned
Definition at line 111 of file file_source.hpp.
|
constexpr |
Property to set database mode. When set, database opens in read-only mode; database opens in read-write-create mode otherwise. type: bool
Definition at line 117 of file file_source.hpp.