View unanswered posts | View active topics It is currently 2020-11-24 18:12



This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
 使用CubicCurve來繪製人員GPS路徑 
Author Message
中级会员
User avatar

Joined: 2013-01-27 0:46
Posts: 447
Post 使用CubicCurve來繪製人員GPS路徑
Dear All,
我使用CubicCurve來繪製人員GPS路徑,但是發現當
cc.putClientProperty(TWaverGisConst.SHAPE_BOUNDS, path);
數量很多時(約2160個CubicCurve點時),整個GIS圖面反應會變得極慢.....
甚至無法操作!!!!
是否有方法來改善??


public void showPeopleTrackingPath(String name, Vector gpsDataList) {
Vector path = new Vector();
GPSData v = null;
path.clear();

clearPeopleTrackingPath(name); //清除既有的path

if (gpsDataList.size() > 0) {
for (int i = 0; i < gpsDataList.size(); i++) {
v = (GPSData) gpsDataList.elementAt(i);
path.add(new GeoCoordinate(v.getLongitude(), v.getLatitude()));
}
CubicCurve cc = new CubicCurve(name + "_track");
cc.putBorderColor(Color.WHITE);
cc.setShapeNodeType(TWaverConst.SHAPENODE_STRAIGHT_LINE);
cc.putCustomDrawOutlineColor(Color.YELLOW);
cc.putCustomDrawOutlineStroke(TWaverConst.STROKE_DOT_THICKEST);
cc.putClientProperty(TWaverGisConst.SHAPE_BOUNDS, path);
cc.setName(name + "_track");
cc.setDisplayName(""); //不要顯示名稱
cc.setToolTipText(name + "的路徑");
box.addElement(cc);
}
if (v != null) {
showPeopleOnGisMap(name, v.getLongitude(), v.getLatitude(), true); //把人也打上去,最後一點。
}
}


2014-01-16 13:44
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron