Modeling Our World

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
public void measureDistance(MapEvent event){
    WebMap webMap = webContext.getWebMap();
    WebGeometry webGeometry=event.getWebGeometry().toMapGeometry(webMap);
    WebPolyline webPolyline = (WebPolyline)webGeometry;
    WebSpatialReference webSpatialReference=webGeometry.getSpatialReference();
   
    lenth=MeasureUtil.getDistance(webPolyline,webSpatialReference);
    System.out.println("lenth:"+lenth);
//    webContext.refresh();
}
posted on 2008-11-14 18:33  egisxp  阅读(645)  评论(0)    收藏  举报