[core] Add {min,max}Zoom accessors
This commit is contained in:
@@ -49,6 +49,12 @@ public:
|
||||
VisibilityType getVisibility() const;
|
||||
void setVisibility(VisibilityType);
|
||||
|
||||
// Zoom range
|
||||
float getMinZoom() const;
|
||||
void setMinZoom(float) const;
|
||||
float getMaxZoom() const;
|
||||
void setMaxZoom(float) const;
|
||||
|
||||
// Create a new layer with the specified `id` and `ref`. All other properties
|
||||
// are copied from this layer.
|
||||
std::unique_ptr<Layer> copy(const std::string& id,
|
||||
|
||||
@@ -21,6 +21,22 @@ void Layer::setVisibility(VisibilityType value) {
|
||||
baseImpl->visibility = value;
|
||||
}
|
||||
|
||||
float Layer::getMinZoom() const {
|
||||
return baseImpl->minZoom;
|
||||
}
|
||||
|
||||
void Layer::setMinZoom(float minZoom) const {
|
||||
baseImpl->minZoom = minZoom;
|
||||
}
|
||||
|
||||
float Layer::getMaxZoom() const {
|
||||
return baseImpl->maxZoom;
|
||||
}
|
||||
|
||||
void Layer::setMaxZoom(float maxZoom) const {
|
||||
baseImpl->maxZoom = maxZoom;
|
||||
}
|
||||
|
||||
std::unique_ptr<Layer> Layer::copy(const std::string& id,
|
||||
const std::string& ref) const {
|
||||
std::unique_ptr<Layer> result = baseImpl->clone();
|
||||
|
||||
Reference in New Issue
Block a user