Просмотр исходного кода

git-svn-id: https://192.168.57.71/svn/qt@88 12fe181a-e57f-b044-8676-16dc139aa63e

ld_zhoutl 8 лет назад
Родитель
Сommit
6a02a00e2d
1 измененных файлов с 16 добавлено и 9 удалено
  1. 16 9
      jdc/jdcweb/trunk/src/main/webapp/static/xt/js/sys/basic_info.js

+ 16 - 9
jdc/jdcweb/trunk/src/main/webapp/static/xt/js/sys/basic_info.js

@@ -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();
                 }
             }