#pragma once #include #include namespace mbgl { /** * @brief Holds options to limit what parts of a map are visible. All fields are * optional. */ struct BoundOptions { /// Sets the latitude and longitude bounds to which the camera center are constrained BoundOptions& withLatLngBounds(LatLngBounds b) { bounds = b; return *this; } /// Sets the minimum zoom level BoundOptions& withMinZoom(double z) { minZoom = z; return *this; } /// Sets the maximum zoom level BoundOptions& withMaxZoom(double z) { maxZoom = z; return *this; } /// Constrain the center of the camera to be within these bounds. optional bounds; /// Maximum zoom level allowed. optional maxZoom; /// Minimum zoom level allowed. optional minZoom; }; } // namespace mbgl