Enable FastPFOR encodings in MLT (#4146)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -133,6 +133,22 @@ public:
|
||||
*/
|
||||
float pixelRatio() const;
|
||||
|
||||
/**
|
||||
* @brief Sets whether to enable decoding of MapLibre Tile (MLT) tiles with FastPFOR integer encodings.
|
||||
* By default, it is set to false. Such tiles will fail if not explicitly enabled.
|
||||
*
|
||||
* @param enable true to enable, false to disable
|
||||
* @return MapOptions for chaining options together.
|
||||
*/
|
||||
MapOptions& withFastPFOREnabled(bool enable);
|
||||
|
||||
/**
|
||||
* @brief Gets the previously set (or default) value.
|
||||
*
|
||||
* @return true if enabled, alse otherwise.
|
||||
*/
|
||||
bool fastPFOREnabled() const;
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> impl_;
|
||||
|
||||
Reference in New Issue
Block a user