/**
* Copyright (c) 2009-2011, chunquedong(YangJiandong)
*
* This file is part of ChunMap project
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
*
* History:
* 2010-05-05 Jed Young Creation
*/
package chunmap.app.tools.navigate;
import chunmap.model.elem.Envelope;
import chunmap.app.command.ExtentCommand;
import chunmap.app.tools.RectangleTool;
public class ZoomInBoxTool extends RectangleTool{
@Override
public void finished() {
Envelope newEnv=envelope.transform(map.getView().screen2World());
ExtentCommand cmd = new ExtentCommand(map, newEnv);
map.executeCommand(cmd);
map.refreshMap();
}
}