[core] s/Update::Zoom/Update/RecalculateStyle/
This commit is contained in:
@@ -149,18 +149,18 @@ bool Map::isPanning() const {
|
||||
|
||||
void Map::jumpTo(const CameraOptions& camera) {
|
||||
transform->jumpTo(camera);
|
||||
update(camera.zoom ? Update::Zoom : Update::Repaint);
|
||||
update(camera.zoom ? Update::RecalculateStyle : Update::Repaint);
|
||||
}
|
||||
|
||||
void Map::easeTo(const CameraOptions& camera, const AnimationOptions& animation) {
|
||||
transform->easeTo(camera, animation);
|
||||
update(camera.zoom ? Update::Zoom : Update::Repaint);
|
||||
update(camera.zoom ? Update::RecalculateStyle : Update::Repaint);
|
||||
}
|
||||
|
||||
|
||||
void Map::flyTo(const CameraOptions& camera, const AnimationOptions& animation) {
|
||||
transform->flyTo(camera, animation);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
#pragma mark - Position
|
||||
@@ -196,7 +196,7 @@ void Map::resetPosition(optional<EdgeInsets> padding) {
|
||||
camera.padding = padding;
|
||||
camera.zoom = 0;
|
||||
transform->jumpTo(camera);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
|
||||
@@ -204,12 +204,12 @@ void Map::resetPosition(optional<EdgeInsets> padding) {
|
||||
|
||||
void Map::scaleBy(double ds, optional<ScreenCoordinate> anchor, const Duration& duration) {
|
||||
transform->scaleBy(ds, anchor, duration);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
void Map::setScale(double scale, optional<ScreenCoordinate> anchor, const Duration& duration) {
|
||||
transform->setScale(scale, anchor, duration);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
double Map::getScale() const {
|
||||
@@ -222,7 +222,7 @@ void Map::setZoom(double zoom, const Duration& duration) {
|
||||
|
||||
void Map::setZoom(double zoom, optional<EdgeInsets> padding, const Duration& duration) {
|
||||
transform->setZoom(zoom, padding, duration);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
double Map::getZoom() const {
|
||||
@@ -235,7 +235,7 @@ void Map::setLatLngZoom(const LatLng& latLng, double zoom, const Duration& durat
|
||||
|
||||
void Map::setLatLngZoom(const LatLng& latLng, double zoom, optional<EdgeInsets> padding, const Duration& duration) {
|
||||
transform->setLatLngZoom(latLng, zoom, padding, duration);
|
||||
update(Update::Zoom);
|
||||
update(Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
CameraOptions Map::cameraForLatLngBounds(const LatLngBounds& bounds, optional<EdgeInsets> padding) {
|
||||
|
||||
Reference in New Issue
Block a user