26 class RendererFrontend;
76 const std::optional<double>& bearing = std::nullopt,
77 const std::optional<double>& pitch = std::nullopt)
const;
80 const std::optional<double>& bearing = std::nullopt,
81 const std::optional<double>& pitch = std::nullopt)
const;
84 const std::optional<double>& bearing = std::nullopt,
85 const std::optional<double>& pitch = std::nullopt)
const;
154 const std::unique_ptr<Impl>
impl;
157 Map(std::unique_ptr<Impl>);
Holds values for client options.
The distance on each side between a rectangle and a rectangle within.
Holds values for Map options.
void setGestureInProgress(bool)
void flyTo(const CameraOptions &, const AnimationOptions &)
std::function< void(std::exception_ptr)> StillImageCallback
CameraOptions cameraForLatLngBounds(const LatLngBounds &, const EdgeInsets &, const std::optional< double > &bearing=std::nullopt, const std::optional< double > &pitch=std::nullopt) const
std::vector< ScreenCoordinate > pixelsForLatLngs(const std::vector< LatLng > &) const
void setStyle(std::unique_ptr< style::Style >)
CameraOptions getCameraOptions(const std::optional< EdgeInsets > &=std::nullopt) const
ProjectionMode getProjectionMode() const
void dumpDebugLogs() const
void jumpTo(const CameraOptions &)
void pitchBy(double pitch, const AnimationOptions &animation={})
void setFreeCameraOptions(const FreeCameraOptions &camera)
void moveBy(const ScreenCoordinate &, const AnimationOptions &={})
double getTopOffsetPixelsForAnnotationImage(const std::string &)
LatLngBounds latLngBoundsForCamera(const CameraOptions &) const
void setConstrainMode(ConstrainMode)
void rotateBy(const ScreenCoordinate &first, const ScreenCoordinate &second, const AnimationOptions &={})
CameraOptions cameraForGeometry(const Geometry< double > &, const EdgeInsets &, const std::optional< double > &bearing=std::nullopt, const std::optional< double > &pitch=std::nullopt) const
void setPrefetchZoomDelta(uint8_t delta)
AnnotationID addAnnotation(const Annotation &)
CameraOptions cameraForLatLngs(const std::vector< LatLng > &, const EdgeInsets &, const std::optional< double > &bearing=std::nullopt, const std::optional< double > &pitch=std::nullopt) const
void removeAnnotationImage(const std::string &)
void triggerRepaint()
Triggers a repaint.
LatLng latLngForPixel(const ScreenCoordinate &) const
void renderStill(const CameraOptions &, MapDebugOptions, StillImageCallback)
const style::Style & getStyle() const
void scaleBy(double scale, const std::optional< ScreenCoordinate > &anchor, const AnimationOptions &animation={})
Map(std::unique_ptr< Impl >)
void setDebug(MapDebugOptions)
Map(RendererFrontend &, MapObserver &, const MapOptions &, const ResourceOptions &, const ClientOptions &=ClientOptions())
MapOptions getMapOptions() const
uint8_t getPrefetchZoomDelta() const
void updateAnnotation(AnnotationID, const Annotation &)
bool isGestureInProgress() const
void setNorthOrientation(NorthOrientation)
bool isFullyLoaded() const
void setViewportMode(ViewportMode)
TransformState getTransfromState() const
void setBounds(const BoundOptions &options)
void easeTo(const CameraOptions &, const AnimationOptions &)
void removeAnnotation(AnnotationID)
std::vector< LatLng > latLngsForPixels(const std::vector< ScreenCoordinate > &) const
style::Style & getStyle()
BoundOptions getBounds() const
Returns the current map bound options. All optional fields in BoundOptions are set.
void addAnnotationImage(std::unique_ptr< style::Image >)
ScreenCoordinate pixelForLatLng(const LatLng &) const
FreeCameraOptions getFreeCameraOptions() const
void setProjectionMode(const ProjectionMode &)
MapDebugOptions getDebug() const
LatLngBounds latLngBoundsForCameraUnwrapped(const CameraOptions &) const
const std::unique_ptr< Impl > impl
void renderStill(StillImageCallback)
Holds values for resource options.
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
constexpr ImageType Image
mapbox::geometry::point< double > ScreenCoordinate
mapbox::geometry::geometry< T > Geometry
variant< SymbolAnnotation, LineAnnotation, FillAnnotation > Annotation
Holds options to limit what parts of a map are visible. All fields are optional.
Holds values for Axonometric rendering. All fields are optional.