8283848586878889909192
double w = view.getWidth() / 2d - dx; double h = view.getHeight() / 2d - dy; double xx = view.x2World(w); double yy = view.y2World(h); MoveToCommand cmd = new MoveToCommand(map, xx, yy); map.executeCommand(cmd); draging = false;