function processCompleted(getFeaturesEventArgs){
var features,result = getFeaturesEventArgs.result;
if (result && result.features) {
features = result.features;
}
console.log(features);
//使用数据
var pointFeatures = [];
var lines1 = [];
var lines2 = [];
var points = [];
var id = 0;
for(var i = 0,len = features.length;i<len;i++)
{
var point = features[i].geometry;
var po = features[i].geometry;
if(id == features[i].data.SmID)
{
points.push(po);
}
else
{
id = features[i].data.SmID;
lines1.push(
new SuperMap.Feature.Vector(
new SuperMap.Geometry.LineString(points),
{},
{
stroke:true,
strokeColor:"#dddddd",
strokeWidth:3,
strokeDashstyle:"solid"
}
)
);
lines2.push(
new SuperMap.Feature.Vector(
new SuperMap.Geometry.LineString(points),
{},
{
stroke:true,
strokeColor:"#41403f",
strokeWidth:2,
strokeDashstyle:"dash"
}
)
);
points = [];
}
if(features[i].data.SmID <151)
{
var pointFeature = new SuperMap.Feature.Vector(point,{
FEATUREID:features[i].data.SmID,
TIME:features[i].data.SmID
},style1);
}
else
{
var pointFeature = new SuperMap.Feature.Vector(point,{
FEATUREID:features[i].data.SmID,
TIME:features[i].data.SmID
},style2);
}
pointFeatures.push(pointFeature);
}
animatorVector.addFeatures(pointFeatures);
lineVector1.addFeatures(lines1);
lineVector2.addFeatures(lines2);
}