function processCompleted(queryEventArgs) {
drawPolygon1.deactivate();
var i, j, result = queryEventArgs.result;
if (result && result.recordsets) {
for (i=0, recordsets=result.recordsets, len=recordsets.length; i<len; i++) {
if (recordsets[i].features) {
for (j=0; j<recordsets[i].features.length; j++) {
var feature = recordsets[i].features[j];
var point = feature.geometry;
if(point.CLASS_NAME == SuperMap.Geometry.Point.prototype.CLASS_NAME){
var size = new SuperMap.Size(44, 33),
offset = new SuperMap.Pixel(-(size.w/2), -size.h),
icon = new SuperMap.Icon("theme/images/marker.png", size, offset);
bikemarkerLayer.addMarker(new SuperMap.Marker(new SuperMap.LonLat(point.x, point.y), icon));
}else{
feature.style = style;
vectorLayer1.addFeatures(feature);
}
}
}
}
}
}
问题: