Update layer immediately when changing its max/min zoom level (#11399)

* [android][core] update layer immediately when changing it's max/min zoom

* [core] node bindings for layer zoom range
This commit is contained in:
Łukasz Paczos
2018-04-12 10:42:14 +02:00
committed by GitHub
parent aaba667cc3
commit 22b4ef1f4b
13 changed files with 50 additions and 0 deletions

View File

@@ -59,12 +59,14 @@ void RasterLayer::setMinZoom(float minZoom) {
auto impl_ = mutableImpl();
impl_->minZoom = minZoom;
baseImpl = std::move(impl_);
observer->onLayerChanged(*this);
}
void RasterLayer::setMaxZoom(float maxZoom) {
auto impl_ = mutableImpl();
impl_->maxZoom = maxZoom;
baseImpl = std::move(impl_);
observer->onLayerChanged(*this);
}
// Layout properties