improve gestures in perspective view

The location under your finger stays under your finger as you pan.
The location you double tap to zoom stays at the same point.
The location at the center of a pinch zoom stays at the center.
The location at the center of a rotation stays at the center.
This commit is contained in:
Ansis Brammanis
2015-08-24 16:44:46 -04:00
committed by Minh Nguyễn
parent bb6241844a
commit 750c72f324
7 changed files with 59 additions and 26 deletions

View File

@@ -166,6 +166,11 @@ void Map::setLatLng(LatLng latLng, const Duration& duration) {
update(Update::Repaint);
}
void Map::setLatLng(LatLng latLng, vec2<double> point, const Duration& duration) {
transform->setLatLng(latLng, point, duration);
update(Update::Repaint);
}
LatLng Map::getLatLng() const {
return transform->getLatLng();
}