| | |
| | | ], |
| | | polygonUrl: 'https://fkxt.jxstnu.edu.cn/changjing/lkarcgisapp' |
| | | }, |
| | | |
| | | { |
| | | key: 2, |
| | | tileUrl: "https://dev.jxpskj.com:8023/arcgis156/rest/services/cc/MapServer/tile/{z}/{y}/{x}", |
| | |
| | | 'orgNavBarFlag', |
| | | 'arcNavBarFlag', |
| | | 'searchPopupFlag', |
| | | 'calenderShow' |
| | | 'calenderShow', |
| | | 'closeMapClick' |
| | | ]) |
| | | }, |
| | | |
| | |
| | | that.map2D.on('pointermove', that.mouseMoveEvent) |
| | | |
| | | this.map2D.on("singleclick", function (event) { |
| | | if (that.closeMapClick) return |
| | | |
| | | let flag = true |
| | | |
| | | that.map2D.forEachFeatureAtPixel( |
| | | event.pixel, |
| | | (feature) => { |
| | | if (flag == false) { |
| | | return |
| | | } |
| | | if (feature.values_.type == 'point') { |
| | | if (feature.values_.type == 'point' || feature.values_.type == 'navigationPoint') { |
| | | flag = false |
| | | } |
| | | |
| | |
| | | let flag = true |
| | | var that = this |
| | | |
| | | if (that.closeMapClick) return |
| | | |
| | | if (select != null && select.values_.type == 'polygon') { |
| | | select.setStyle(new Style({ |
| | | |
| | |
| | | return |
| | | } |
| | | |
| | | if (feature.values_.type == 'point') { |
| | | if (feature.values_.type == 'point' || feature.values_.type == 'navigationPoint') { |
| | | flag = false |
| | | return |
| | | } |
| | | |
| | | if (select != null) { |
| | | if (feature != select) { |
| | | if (feature.values_.type == 'polygon') { |
| | | if (select != null && feature != select) { |
| | | select.setStyle(new Style({ |
| | | |
| | | fill: new Fill({ |
| | |
| | | |
| | | select = null |
| | | } |
| | | |
| | | if (select == null) { |
| | | select = feature |
| | | |
| | | select.setStyle( |
| | | new Style({ |
| | | |
| | | fill: new Fill({ |
| | | color: 'rgba(108, 245, 113, 0.6)' |
| | | }), |
| | | |
| | | stroke: new Stroke({ |
| | | color: 'rgba(3, 255, 13, 1)', |
| | | width: 1, |
| | | }), |
| | | |
| | | }) |
| | | ) |
| | | } |
| | | } |
| | | |
| | | if (select == null) { |
| | | select = feature |
| | | |
| | | select.setStyle( |
| | | new Style({ |
| | | |
| | | fill: new Fill({ |
| | | color: 'rgba(108, 245, 113, 0.6)' |
| | | }), |
| | | |
| | | stroke: new Stroke({ |
| | | color: 'rgba(3, 255, 13, 1)', |
| | | width: 1, |
| | | }), |
| | | |
| | | }) |
| | | ) |
| | | } |
| | | } |
| | | ) |
| | | }, |