|
@@ -1844,7 +1844,14 @@ function showBoWeiFeture(bwid) {
|
|
|
if(bwid == feature.data.ID) {
|
|
|
var bounds = feature.geometry.getBounds().getCenterLonLat();
|
|
|
setMapCenter(bounds.lat, bounds.lon, 13);
|
|
|
+ feature.style = {
|
|
|
+ strokeColor: "#ff0000",
|
|
|
+ strokeWidth: 1,
|
|
|
+ fillColor: "#0000FF",
|
|
|
+ fillOpacity: "0.8"
|
|
|
+ };
|
|
|
boweiVectorLayer.addFeatures(feature);
|
|
|
+ showBWInfoWin(bwid);
|
|
|
boweiSelect.activate();
|
|
|
}
|
|
|
}
|
|
@@ -1866,11 +1873,10 @@ function selectGangQuCompleted(queryEventArgs) {
|
|
|
for (j = 0; j < result.recordsets[i].features.length; j++) {
|
|
|
feature = result.recordsets[i].features[j];
|
|
|
feature.style = {
|
|
|
- strokeColor: "#FFFF00",
|
|
|
- strokeWidth: 2,
|
|
|
- fill: false
|
|
|
-// fillColor: "#FFFF00",
|
|
|
-// fillOpacity: "0.01"
|
|
|
+ strokeColor: "#ff0000",
|
|
|
+ strokeWidth: 1,
|
|
|
+ fillColor: "#0000FF",
|
|
|
+ fillOpacity: "0.8"
|
|
|
};
|
|
|
if (selectFeature) {
|
|
|
gangquVectorLayer.removeFeatures(selectFeature);
|
|
@@ -1893,15 +1899,16 @@ function selectBoWeiCompleted(queryEventArgs) {
|
|
|
for (j = 0; j < result.recordsets[i].features.length; j++) {
|
|
|
feature = result.recordsets[i].features[j];
|
|
|
feature.style = {
|
|
|
- strokeColor: "#000000",
|
|
|
- strokeWidth: 2,
|
|
|
- fillColor: "#8FB3DD",
|
|
|
- fillOpacity: "0.6"
|
|
|
+ strokeColor: "#ff0000",
|
|
|
+ strokeWidth: 1,
|
|
|
+ fillColor: "#0000FF",
|
|
|
+ fillOpacity: "0.8"
|
|
|
};
|
|
|
selectFeature = feature;
|
|
|
var bounds = feature.geometry.getBounds().getCenterLonLat();
|
|
|
setMapCenter(bounds.lat, bounds.lon, 13);
|
|
|
boweiVectorLayer.addFeatures(feature);
|
|
|
+ showBWInfoWin(feature.attributes.ID);
|
|
|
boweiSelect.activate();
|
|
|
}
|
|
|
}
|