如何让火车监控模拟的闪点不消失,并在指定点上闪烁,实心点不动?
您好!只要能实现就好。麻烦您帮我看下
//添加火车数据 function addTrain() { var getFeatureParam, getFeatureBySQLService, getFeatureBySQLParams;
getFeatureParam = new SuperMap.REST.FilterParameter({ name: "yun@YunNanShi_point", attributeFilter: null }); getFeatureBySQLParams = new SuperMap.REST.GetFeaturesBySQLParameters({ queryParameter: getFeatureParam, datasetNames:["yun:YunNanShi_point"] }); //返回个数 getFeatureBySQLParams.toIndex = 2240; getFeatureBySQLService = new SuperMap.REST.GetFeaturesBySQLService(url2, { eventListeners: {"processCompleted": processCompleted, "processFailed": processFailed}});
getFeatureBySQLService.processAsync(getFeatureBySQLParams);
} function processCompleted(getFeaturesEventArgs){ var features,result = getFeaturesEventArgs.result; if (result && result.features) { features = result.features; } console.log(features);
//使用数据 var pointFeatures = []; 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; var pointFeature = new SuperMap.Feature.Vector(point,{ FEATUREID:features[i].data.SMID+0, TIME:"26.0" },style2);
pointFeatures.push(pointFeature); } animatorVector.addFeatures(pointFeatures);
}
建议您可以看看时空数据的专题介绍http://support.supermap.com.cn:8090/iserver/iClient/forJavaScript/examples/AnimatorTopic.html 这里详细介绍了数据的构造和实现的原理。