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:
committed by
Minh Nguyễn
parent
bb6241844a
commit
750c72f324
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user