

230823 서영석 히트맵 추가
@19e4e8eb00f9cde2cebf99dc382f7fa9f71733c9
--- client/views/component/OpenLayers.vue
+++ client/views/component/OpenLayers.vue
... | ... | @@ -25,6 +25,8 @@ |
25 | 25 |
import { Cluster } from 'ol/source'; |
26 | 26 |
import { fromExtent } from 'ol/geom/Polygon'; |
27 | 27 |
import OSM from 'ol/source/OSM.js'; |
28 |
+import Stamen from 'ol/source/Stamen.js'; |
|
29 |
+import KML from 'ol/format/KML.js'; |
|
28 | 30 |
|
29 | 31 |
|
30 | 32 |
// V월드 메인키 |
... | ... | @@ -687,46 +689,33 @@ |
687 | 689 |
headers: { |
688 | 690 |
'Content-Type': 'application/json; charset=UTF-8' |
689 | 691 |
}, |
690 |
- data: { "dong_cd": dong_cd, "node_id": node_id }, |
|
692 |
+ data: { "dong_cd": dong_cd}, |
|
691 | 693 |
}).then(function (response) { |
692 |
- const tempfeatures = new GeoJSON().readFeatures(response.data); |
|
693 |
- |
|
694 |
- // const areaSize=response.data.features.area; |
|
695 |
- let layerSource = new VectorSource({}); |
|
696 |
- if (geoType === vm.baseSource) { |
|
697 |
- layerSource = new VectorSource({ |
|
698 |
- features: tempfeatures |
|
699 |
- }); |
|
700 |
- } else { |
|
701 |
- tempfeatures.forEach(function (feature) { |
|
702 |
- // 좌표변환 |
|
703 |
- feature.getGeometry().transform(geoType, vm.baseSource); |
|
704 |
- layerSource.addFeature(feature) |
|
705 |
- }); |
|
706 |
- } |
|
707 |
- |
|
708 |
- const heatmapSource = new VectorSource({ |
|
709 |
- source: layerSource, |
|
694 |
+ console.log("url : ", sourceUrl); |
|
695 |
+ console.log("addHeatmapLayer response : ", response.data); |
|
696 |
+ |
|
697 |
+ var heatfeature = new VectorSource({ |
|
698 |
+ features: new GeoJSON().readFeatures(response.data,{ |
|
699 |
+ dataProjection: "EPSG:5181", |
|
700 |
+ featureProjection: "EPSG:5181" |
|
701 |
+ }) |
|
710 | 702 |
}); |
703 |
+ |
|
704 |
+ const vector = new HeatmapLayer({ |
|
705 |
+ source: heatfeature, |
|
706 |
+ blur: 50, |
|
707 |
+ radius: 10, |
|
708 |
+ |
|
709 |
+ weight: function (feature) { |
|
710 |
+ // Modify the weight function as needed |
|
711 |
+ return 10; |
|
712 |
+ }, |
|
713 |
+ }); |
|
711 | 714 |
|
712 |
- const vector = new HeatmapLayer({ |
|
713 |
- properties: { name: layerName }, |
|
714 |
- source: heatmapSource, |
|
715 |
- blur: 50, |
|
716 |
- radius: 25, |
|
717 |
- weight: function (feature) { |
|
718 |
- const name = feature.get('name'); |
|
719 |
- const magnitude = parseFloat(name.substr(2)); |
|
720 |
- return magnitude - 5; |
|
721 |
- }, |
|
722 |
- }); |
|
723 |
- var layer = new TileLayer({ |
|
724 |
- source: new OSM() |
|
725 |
- }); |
|
726 |
- |
|
727 |
- vector.setZIndex(10); |
|
728 |
- vm.map.addLayer(layer); |
|
729 |
- vm.map.addLayer(vector); |
|
715 |
+ vector.setZIndex(10); |
|
716 |
+ vm.map.addLayer(vector); |
|
717 |
+ // vm.map.addLayer(raster); |
|
718 |
+ |
|
730 | 719 |
}).catch(function (error) { |
731 | 720 |
console.log("error : ", error); |
732 | 721 |
}); |
... | ... | @@ -786,11 +775,13 @@ |
786 | 775 |
} else if (type == 'MultiPolygon') { |
787 | 776 |
return style |
788 | 777 |
} else if (type == 'MultiPolygonForAnalysis') { |
789 |
- if(feature.get('count')<feature.get('count')/4){ |
|
778 |
+ if (feature.get('count')<feature.get('count')/5){ |
|
779 |
+ style.getFill().setColor(`rgba(255, ${(250).toString()}, 0, 0.5)`); |
|
780 |
+ }else if(feature.get('count')<feature.get('count')*2/5){ |
|
790 | 781 |
style.getFill().setColor(`rgba(255, ${(180).toString()}, 0, 0.5)`); |
791 |
- }else if (feature.get('count')<feature.get('count')*2/4){ |
|
782 |
+ }else if (feature.get('count')<feature.get('count')*3/5){ |
|
792 | 783 |
style.getFill().setColor(`rgba(255, ${(120).toString()}, 0, 0.5)`); |
793 |
- }else if (feature.get('count')<feature.get('count')*3/4){ |
|
784 |
+ }else if (feature.get('count')<feature.get('count')*4/5){ |
|
794 | 785 |
style.getFill().setColor(`rgba(255, ${(60).toString()}, 0, 0.5)`); |
795 | 786 |
}else { |
796 | 787 |
style.getFill().setColor(`rgba(255, ${(0).toString()}, 0, 0.5)`); |
--- client/views/pages/Analysis/Analysis.vue
+++ client/views/pages/Analysis/Analysis.vue
... | ... | @@ -148,7 +148,7 @@ |
148 | 148 |
<div class="top flex gap"> |
149 | 149 |
<button class="s-btn" @click="changeClusterLayer">클러스터</button> |
150 | 150 |
<button class="s-btn" @click="changeLayer">레이어</button> |
151 |
- <!-- <button class="s-btn" @click="changeHeatmapLayer">히트맵</button> --> |
|
151 |
+ <button class="s-btn" @click="changeHeatmapLayer" >히트맵</button> |
|
152 | 152 |
</div> |
153 | 153 |
<OpenLayers ref="open_layers" /> |
154 | 154 |
</div> |
... | ... | @@ -916,19 +916,15 @@ |
916 | 916 |
vm.rittrnVhcleCrosngTotalCnt=0; |
917 | 917 |
vm.troblOcrnCrosngTotalCnt=0; |
918 | 918 |
for(var i = 0 ; i<response.data.wtrmsCrosng.length; i++){ |
919 |
- [response.data.wtrmsCrosng[i].lat,response.data.wtrmsCrosng[i].lon] = transform([response.data.wtrmsCrosng[i].lat,response.data.wtrmsCrosng[i].lon],"EPSG:5181","EPSG:4326"); ; |
|
920 | 919 |
vm.wtrmsCrosngTotalCnt+=response.data.wtrmsCrosng[i].count; |
921 | 920 |
} |
922 | 921 |
for(var i = 0 ; i<response.data.signExtn.length; i++){ |
923 |
- [response.data.signExtn[i].lat,response.data.signExtn[i].lon] = transform([response.data.signExtn[i].lat,response.data.signExtn[i].lon],"EPSG:5181","EPSG:4326"); ; |
|
924 | 922 |
vm.signExtnCrosngTotalCnt+=response.data.signExtn[i].count; |
925 | 923 |
} |
926 | 924 |
for(var i = 0 ; i<response.data.rittrnVhcle.length; i++){ |
927 |
- [response.data.rittrnVhcle[i].lat,response.data.rittrnVhcle[i].lon] = transform([response.data.rittrnVhcle[i].lat,response.data.rittrnVhcle[i].lon],"EPSG:5181","EPSG:4326"); ; |
|
928 | 925 |
vm.rittrnVhcleCrosngTotalCnt+=response.data.rittrnVhcle[i].count; |
929 | 926 |
} |
930 | 927 |
for(var i = 0 ; i<response.data.troblOcrn.length; i++){ |
931 |
- [response.data.troblOcrn[i].lat,response.data.troblOcrn[i].lon] = transform([response.data.troblOcrn[i].lat,response.data.troblOcrn[i].lon],"EPSG:5181","EPSG:4326"); ; |
|
932 | 928 |
vm.troblOcrnCrosngTotalCnt+=response.data.troblOcrn[i].count; |
933 | 929 |
} |
934 | 930 |
vm.wtrmsCrosngSearchResult=response.data.wtrmsCrosng; |
... | ... | @@ -988,9 +984,13 @@ |
988 | 984 |
} else if (this.layerCk) { |
989 | 985 |
this.$refs.open_layers.removeLayerAll(); |
990 | 986 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
991 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
992 | 987 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
993 | 988 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
989 |
+ }else if (this.heatmapCk) { |
|
990 |
+ this.$refs.open_layers.removeLayerAll(); |
|
991 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
992 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
993 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
994 | 994 |
} |
995 | 995 |
} |
996 | 996 |
else if (this.itemsCk == 2) { |
... | ... | @@ -1002,37 +1002,47 @@ |
1002 | 1002 |
}else if (this.layerCk) { |
1003 | 1003 |
this.$refs.open_layers.removeLayerAll(); |
1004 | 1004 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1005 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1006 | 1005 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonSignExtnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1007 | 1006 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonSignExtnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1007 |
+ }else if (this.heatmapCk) { |
|
1008 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1009 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1010 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1011 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1008 | 1012 |
} |
1009 | 1013 |
} |
1010 | 1014 |
else if (this.itemsCk == 3) { |
1011 | 1015 |
if (this.clusterCk) { |
1012 | 1016 |
this.$refs.open_layers.removeLayerAll(); |
1013 | 1017 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1014 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1015 | 1018 |
this.$refs.open_layers.addClusterLayerByUrl( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
1016 | 1019 |
}else if (this.layerCk) { |
1017 | 1020 |
this.$refs.open_layers.removeLayerAll(); |
1018 | 1021 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1019 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1020 | 1022 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1021 | 1023 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1024 |
+ }else if (this.heatmapCk) { |
|
1025 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1026 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1027 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1028 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1022 | 1029 |
} |
1023 | 1030 |
} |
1024 | 1031 |
else if (this.itemsCk == 4) { |
1025 | 1032 |
if (this.clusterCk) { |
1026 | 1033 |
this.$refs.open_layers.removeLayerAll(); |
1027 | 1034 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1028 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1029 | 1035 |
this.$refs.open_layers.addClusterLayerByUrl( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
1030 | 1036 |
}else if (this.layerCk) { |
1031 | 1037 |
this.$refs.open_layers.removeLayerAll(); |
1032 | 1038 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1033 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1034 | 1039 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonTroblOcrnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1035 | 1040 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonTroblOcrnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1041 |
+ }else if (this.heatmapCk) { |
|
1042 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1043 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1044 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1045 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1036 | 1046 |
} |
1037 | 1047 |
} |
1038 | 1048 |
}, |
... | ... | @@ -1051,9 +1061,13 @@ |
1051 | 1061 |
} else if (this.layerCk) { |
1052 | 1062 |
this.$refs.open_layers.removeLayerAll(); |
1053 | 1063 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1054 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1055 | 1064 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1056 | 1065 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1066 |
+ }else if (this.heatmapCk) { |
|
1067 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1068 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1069 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1070 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1057 | 1071 |
} |
1058 | 1072 |
} |
1059 | 1073 |
else if (this.itemsCk == 2) { |
... | ... | @@ -1065,37 +1079,47 @@ |
1065 | 1079 |
}else if (this.layerCk) { |
1066 | 1080 |
this.$refs.open_layers.removeLayerAll(); |
1067 | 1081 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1068 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1069 | 1082 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonSignExtnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1070 | 1083 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonSignExtnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1084 |
+ }else if (this.heatmapCk) { |
|
1085 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1086 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1087 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1088 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1071 | 1089 |
} |
1072 | 1090 |
} |
1073 | 1091 |
else if (this.itemsCk == 3) { |
1074 | 1092 |
if (this.clusterCk) { |
1075 | 1093 |
this.$refs.open_layers.removeLayerAll(); |
1076 | 1094 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1077 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1078 | 1095 |
this.$refs.open_layers.addClusterLayerByUrl( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
1079 | 1096 |
}else if (this.layerCk) { |
1080 | 1097 |
this.$refs.open_layers.removeLayerAll(); |
1081 | 1098 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1082 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1083 | 1099 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1084 | 1100 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1101 |
+ }else if (this.heatmapCk) { |
|
1102 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1103 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1104 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1105 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1085 | 1106 |
} |
1086 | 1107 |
} |
1087 | 1108 |
else if (this.itemsCk == 4) { |
1088 | 1109 |
if (this.clusterCk) { |
1089 | 1110 |
this.$refs.open_layers.removeLayerAll(); |
1090 | 1111 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1091 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1092 | 1112 |
this.$refs.open_layers.addClusterLayerByUrl( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
1093 | 1113 |
}else if (this.layerCk) { |
1094 | 1114 |
this.$refs.open_layers.removeLayerAll(); |
1095 | 1115 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1096 |
- this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1097 | 1116 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonTroblOcrnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1098 | 1117 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonTroblOcrnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1118 |
+ }else if (this.heatmapCk) { |
|
1119 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1120 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1121 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1122 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1099 | 1123 |
} |
1100 | 1124 |
} |
1101 | 1125 |
}, |
... | ... | @@ -1116,6 +1140,11 @@ |
1116 | 1140 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1117 | 1141 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1118 | 1142 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1143 |
+ }else if (this.heatmapCk) { |
|
1144 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1145 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1146 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1147 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1119 | 1148 |
} |
1120 | 1149 |
} |
1121 | 1150 |
else if (this.itemsCk == 2) { |
... | ... | @@ -1129,6 +1158,11 @@ |
1129 | 1158 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1130 | 1159 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonSignExtnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1131 | 1160 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonSignExtnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1161 |
+ }else if (this.heatmapCk) { |
|
1162 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1163 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1164 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1165 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1132 | 1166 |
} |
1133 | 1167 |
} |
1134 | 1168 |
else if (this.itemsCk == 3) { |
... | ... | @@ -1141,6 +1175,11 @@ |
1141 | 1175 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1142 | 1176 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1143 | 1177 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1178 |
+ }else if (this.heatmapCk) { |
|
1179 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1180 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1181 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1182 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1144 | 1183 |
} |
1145 | 1184 |
} |
1146 | 1185 |
else if (this.itemsCk == 4) { |
... | ... | @@ -1153,6 +1192,11 @@ |
1153 | 1192 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1154 | 1193 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonTroblOcrnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1155 | 1194 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonTroblOcrnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1195 |
+ }else if (this.heatmapCk) { |
|
1196 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1197 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1198 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1199 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1156 | 1200 |
} |
1157 | 1201 |
} |
1158 | 1202 |
}, |
... | ... | @@ -1169,6 +1213,11 @@ |
1169 | 1213 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1170 | 1214 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1171 | 1215 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1216 |
+ }else if (this.heatmapCk) { |
|
1217 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1218 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1219 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1220 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1172 | 1221 |
} |
1173 | 1222 |
} |
1174 | 1223 |
else if (this.itemsCk == 2) { |
... | ... | @@ -1182,6 +1231,11 @@ |
1182 | 1231 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1183 | 1232 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonSignExtnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1184 | 1233 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonSignExtnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1234 |
+ }else if (this.heatmapCk) { |
|
1235 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1236 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1237 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1238 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1185 | 1239 |
} |
1186 | 1240 |
} |
1187 | 1241 |
else if (this.itemsCk == 3) { |
... | ... | @@ -1194,6 +1248,11 @@ |
1194 | 1248 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1195 | 1249 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1196 | 1250 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1251 |
+ }else if (this.heatmapCk) { |
|
1252 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1253 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1254 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1255 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1197 | 1256 |
} |
1198 | 1257 |
} |
1199 | 1258 |
else if (this.itemsCk == 4) { |
... | ... | @@ -1206,6 +1265,11 @@ |
1206 | 1265 |
this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
1207 | 1266 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonTroblOcrnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1208 | 1267 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonTroblOcrnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1268 |
+ }else if (this.heatmapCk) { |
|
1269 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1270 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1271 |
+ this.$refs.open_layers.addVectorLayerAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1272 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1209 | 1273 |
} |
1210 | 1274 |
} |
1211 | 1275 |
}, |
... | ... | @@ -1323,6 +1387,40 @@ |
1323 | 1387 |
this.layerCk = false; |
1324 | 1388 |
//히트맵 체크 |
1325 | 1389 |
this.heatmapCk = true; |
1390 |
+ |
|
1391 |
+ if (this.itemsCk == 1) { |
|
1392 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1393 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer); |
|
1394 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1395 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1396 |
+ } |
|
1397 |
+ if (this.itemsCk == 1) { |
|
1398 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1399 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer); |
|
1400 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1401 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1402 |
+ } |
|
1403 |
+ //신호연장 |
|
1404 |
+ if (this.itemsCk == 2) { |
|
1405 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1406 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer); |
|
1407 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1408 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1409 |
+ } |
|
1410 |
+ //우회전 차량 |
|
1411 |
+ if (this.itemsCk == 3) { |
|
1412 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1413 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer); |
|
1414 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1415 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1416 |
+ } |
|
1417 |
+ // 장애발생 |
|
1418 |
+ if (this.itemsCk == 4) { |
|
1419 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1420 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer); |
|
1421 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1422 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1423 |
+ } |
|
1326 | 1424 |
}, |
1327 | 1425 |
childMoveEnd() {}, |
1328 | 1426 |
childClick() {}, |
... | ... | @@ -1362,6 +1460,10 @@ |
1362 | 1460 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1363 | 1461 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonWtrmsCrosngLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1364 | 1462 |
} else if (this.heatmapCk) { |
1463 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1464 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1465 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1466 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonWtrmsCrosngAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1365 | 1467 |
} |
1366 | 1468 |
this.searchResultState = "무단횡단 발생"; |
1367 | 1469 |
} |
... | ... | @@ -1380,6 +1482,11 @@ |
1380 | 1482 |
this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
1381 | 1483 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonSignExtnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1382 | 1484 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonSignExtnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1485 |
+ }else if (this.heatmapCk) { |
|
1486 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1487 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1488 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1489 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonSignExtnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1383 | 1490 |
} |
1384 | 1491 |
this.searchResultState = "신호연장 발생"; |
1385 | 1492 |
} |
... | ... | @@ -1398,6 +1505,11 @@ |
1398 | 1505 |
this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
1399 | 1506 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1400 | 1507 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonRittrnVhcleLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1508 |
+ }else if (this.heatmapCk) { |
|
1509 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1510 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1511 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1512 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonRittrnVhcleAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1401 | 1513 |
} |
1402 | 1514 |
this.searchResultState = "불법 우회전 발생"; |
1403 | 1515 |
} |
... | ... | @@ -1416,6 +1528,11 @@ |
1416 | 1528 |
this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsPolygonGeoJson.json","multPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
1417 | 1529 |
this.$refs.open_layers.addLayerTypeLayer("/common/getPolygonGeoJsonTroblOcrnLayerTypeCntAnalysis.json","multiPolygonForAnalysis","EPSG:5181",baseStyles["MultiPolygonForAnalysis"],"MultiPolygonForAnalysis",this.address); |
1418 | 1530 |
this.$refs.open_layers.addLayerTypeLayer("/common/getGeoJsonTroblOcrnLayerTypeCntAnalysis.json","labelForAnalysis","EPSG:5181",baseStyles["labelForAnalysis"],"labelForAnalysis",this.address); |
1531 |
+ }else if (this.heatmapCk) { |
|
1532 |
+ this.$refs.open_layers.removeLayerAll(); |
|
1533 |
+ this.$refs.open_layers.setBaseMap(vworldBaseLayer, event.target.value); |
|
1534 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizeByUrl("/common/getDongsGeoJson.json","multiPolygonLayer","EPSG:5181",baseStyles["MultiPolygon"],"MultiPolygon",this.address.dong_cd); |
|
1535 |
+ this.$refs.open_layers.addHeatmapLayer( "/common/getNodeGeoJsonTroblOcrnAnalysis.json", "clusterLayer", "EPSG:5181", baseStyles["clusterStyle"], "clusterStyle", this.address ); |
|
1419 | 1536 |
} |
1420 | 1537 |
this.searchResultState = "장애발생"; |
1421 | 1538 |
} |
--- client/views/pages/CrosswalkManagement/CrosswalkSearch.vue
+++ client/views/pages/CrosswalkManagement/CrosswalkSearch.vue
... | ... | @@ -1233,14 +1233,15 @@ |
1233 | 1233 |
vm.crosswalk.siDo_dong_cd = response.data.dong_cd.slice(0, 2); |
1234 | 1234 |
vm.crosswalk.guGun_dong_cd = response.data.dong_cd.slice(0, 5); |
1235 | 1235 |
vm.crosswalk.dong_dong_cd = response.data.dong_cd; |
1236 |
- let coordinate = transform( |
|
1237 |
- [response.data.lon, response.data.lat], |
|
1238 |
- "EPSG:4326", |
|
1239 |
- "EPSG:5181" |
|
1240 |
- ); |
|
1241 |
- vm.crosswalk.lat = coordinate[0]; |
|
1242 |
- vm.crosswalk.lon = coordinate[1]; |
|
1243 |
- |
|
1236 |
+ // let coordinate = transform( |
|
1237 |
+ // [response.data.lon, response.data.lat], |
|
1238 |
+ // "EPSG:4326", |
|
1239 |
+ // "EPSG:5181" |
|
1240 |
+ // ); |
|
1241 |
+ // vm.crosswalk.lat = coordinate[0]; |
|
1242 |
+ // vm.crosswalk.lon = coordinate[1]; |
|
1243 |
+ vm.crosswalk.lat = response.data.lat; |
|
1244 |
+ vm.crosswalk.lon = response.data.lon; |
|
1244 | 1245 |
if (response.data.rittrn_tfclne_yn == "y") { |
1245 | 1246 |
vm.crosswalk.rittrn_tfclne_yn = true; |
1246 | 1247 |
} else { |
... | ... | @@ -1384,7 +1385,7 @@ |
1384 | 1385 |
// this.$refs.open_layers.addVectorLayerRemoveAutoSizAddChildNodeCnteByUrl("/common/getDongsCenterAndChildNodeCntJson.json","nodeLayer", "EPSG:5181", baseStyles["labelStyle"], "label", this.$route.query.dong_cd, this.$route.query.node_id); |
1385 | 1386 |
} else { |
1386 | 1387 |
this.$refs.open_layers.addVectorLayerByUrl( "/common/getDongsGeoJson.json","multiPolygonLayer", "EPSG:5181", baseStyles["MultiPolygon"], "MultiPolygon", this.address.dong_cd); |
1387 |
- this.$refs.open_layers.addVectorLayerRemoveAutoSizAddChildNodeCnteByUrl("/common/getDongsCenterAndChildNodeCntJson.json","nodeLayer", "EPSG:5181", baseStyles["labelStyle"], "label", this.address.dong_cd); |
|
1388 |
+ this.$refs.open_layers.addVectorLayerRemoveAutoSizAddChildNodeCnteByUrl("/common/getDongsCenterAndChildNodeCntJson.json","nodeLayer", "EPSG:5181", baseStyles["labelStyle"], "label", this.address); |
|
1388 | 1389 |
} |
1389 | 1390 |
// this.$refs.open_layers.dumpTroblLayer("/common/getDongsCenterAndChildNodeCntJson.json","troblLayer", "EPSG:5181", baseStyles["labelStyle"], "label", this.address.dong_cd); |
1390 | 1391 |
}, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?