allow for animated moves

This commit is contained in:
Justin R. Miller
2014-02-06 16:08:44 -05:00
parent 26433e3288
commit e48207a4ef
4 changed files with 12 additions and 7 deletions

View File

@@ -57,8 +57,8 @@ void Map::resize(uint32_t width, uint32_t height, uint32_t fb_width, uint32_t fb
update();
}
void Map::moveBy(double dx, double dy) {
transform.moveBy(dx, dy);
void Map::moveBy(double dx, double dy, double duration) {
transform.moveBy(dx, dy, duration);
update();
transform.getLonLat(settings.longitude, settings.latitude);