138 std::unique_ptr<Impl> impl_;
Holds values for Map options.
MapOptions & withPixelRatio(float ratio)
Sets the custom pixel ratio. By default, it is set to 1.
Size size() const
Gets the previously set size.
MapOptions & withConstrainMode(ConstrainMode mode)
Sets the map constrain mode. This can be used to limit the map to wrap around the globe horizontally....
ViewportMode viewportMode() const
Gets the previously set (or default) viewport mode.
MapOptions & withMapMode(MapMode mode)
Sets the map rendering mode. By default, it is set to Continuous so the map will render as data arriv...
MapOptions & withSize(Size size_)
Sets the size to resize the map object and renderer backend.
MapOptions & withCrossSourceCollisions(bool enableCollisions)
Specify whether to enable cross-source symbol collision detection or not. By default,...
ConstrainMode constrainMode() const
Gets the previously set (or default) constrain mode.
NorthOrientation northOrientation() const
Gets the previously set (or default) orientation.
MapOptions & withViewportMode(ViewportMode mode)
Sets the viewport mode. This can be used to flip the vertical orientation of the map as some devices ...
MapOptions & withNorthOrientation(NorthOrientation orientation)
Sets the orientation of the Map. By default, it is set to Upwards.
float pixelRatio() const
Gets the previously set (or default) pixel ratio value.
bool crossSourceCollisions() const
Gets the previously set (or default) crossSourceCollisions value.
MapOptions()
Constructs a MapOptions object with default values.
MapOptions(MapOptions &&) noexcept
MapMode mapMode() const
Gets the previously set (or default) map mode.