mapview_.java~1~
来自「一个很有特点的地图平台,可以以动画方试展现电子地图,有拉近,拉远,滑动功能,最主」· JAVA~1~ 代码 · 共 28 行
JAVA~1~
28 行
package mapcenter.weihu;
import java.awt.*;
import com.mapinfo.beans.vmapj.*;
import mapcenter.service.*;
import mapcenter.weihu.*;
public class MapView extends VisualMapJ{
private static final Log log = LogFactory.getLog("WebGIS");
private static MapView instance;
public static MapView getInstance()throws Exception{
if(instance == null) instance = new MapView();
return instance;
}
private MapView() throws Exception{
this.setShowToolTips(true);
this.setBackground(java.awt.Color.white);
}
public void viewMap(){
try{
Image image = MapHandle.getInstance().render();
this.getGraphics().drawImage(image,0,0,null);
}catch(Exception ee){log.error(ee);}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?