8485868788899091929394
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; map.refreshMap();