김성원 김성원 2023-06-21
오픈레이어 모듈 개발중
@166739b049553f17af5767a19e08cd713b788e10
 
client/views/component/OpenLayersIcon.vue (added)
+++ client/views/component/OpenLayersIcon.vue
@@ -0,0 +1,4 @@
+<script>
+
+
+</script>
client/views/pages/CrosswalkManagement/CrosswalkInsert.vue
--- client/views/pages/CrosswalkManagement/CrosswalkInsert.vue
+++ client/views/pages/CrosswalkManagement/CrosswalkInsert.vue
@@ -430,7 +430,8 @@
     var vm = this;
     // 지도 초기화 
     this.$refs.open_layers.setBaseMap(vworldBaseLayer);    
-     this.$refs.open_layers.addVectorLayerByUrl('/testDongGeoJson.json','testMap','EPSG:4326', baseStyles['labelStyle'],'label');    
+     //this.$refs.open_layers.addVectorLayerByUrl('/testDongGeoJson.json','testMap','EPSG:4326', baseStyles['labelStyle'],'label');    
+     this.$refs.open_layers.addVectorLayerByUrl('/testDongGeoJson2.json','testMap','EPSG:5181', baseStyles['MultiPolygon'],'MultiPolygon'); 
 
   },
 };
package-lock.json
--- package-lock.json
+++ package-lock.json
@@ -7,6 +7,7 @@
       "dependencies": {
         "@babel/cli": "7.19.3",
         "@babel/core": "7.19.3",
+        "@types/proj4": "^2.5.2",
         "@vue-leaflet/vue-leaflet": "github:vue-leaflet/vue-leaflet",
         "axios": "^1.3.4",
         "babel-loader": "8.2.5",
@@ -19,6 +20,7 @@
         "new-line": "^1.1.1",
         "ol": "^7.4.0",
         "pg": "8.8.0",
+        "proj4": "^2.9.0",
         "url-loader": "4.1.1",
         "vue": "3.2.40",
         "vue-loader": "^17.0.0",
@@ -2090,6 +2092,11 @@
       "version": "18.11.2",
       "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.2.tgz",
       "integrity": "sha512-BWN3M23gLO2jVG8g/XHIRFWiiV4/GckeFIqbU/C4V3xpoBBWSMk4OZomouN0wCkfQFPqgZikyLr7DOYDysIkkw=="
+    },
+    "node_modules/@types/proj4": {
+      "version": "2.5.2",
+      "resolved": "https://registry.npmjs.org/@types/proj4/-/proj4-2.5.2.tgz",
+      "integrity": "sha512-/Nmfn9p08yaYw6xo5f2b0L+2oHk2kZeOkp5v+4VCeNfq+ETlLQbmHmC97/pjDIEZy8jxwz7pdPpwNzDHM5cuJw=="
     },
     "node_modules/@types/raf": {
       "version": "3.4.0",
@@ -7625,6 +7632,11 @@
       "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.2.tgz",
       "integrity": "sha512-BWN3M23gLO2jVG8g/XHIRFWiiV4/GckeFIqbU/C4V3xpoBBWSMk4OZomouN0wCkfQFPqgZikyLr7DOYDysIkkw=="
     },
+    "@types/proj4": {
+      "version": "2.5.2",
+      "resolved": "https://registry.npmjs.org/@types/proj4/-/proj4-2.5.2.tgz",
+      "integrity": "sha512-/Nmfn9p08yaYw6xo5f2b0L+2oHk2kZeOkp5v+4VCeNfq+ETlLQbmHmC97/pjDIEZy8jxwz7pdPpwNzDHM5cuJw=="
+    },
     "@types/raf": {
       "version": "3.4.0",
       "resolved": "https://registry.npmjs.org/@types/raf/-/raf-3.4.0.tgz",
package.json
--- package.json
+++ package.json
@@ -2,6 +2,7 @@
   "dependencies": {
     "@babel/cli": "7.19.3",
     "@babel/core": "7.19.3",
+    "@types/proj4": "^2.5.2",
     "@vue-leaflet/vue-leaflet": "github:vue-leaflet/vue-leaflet",
     "axios": "^1.3.4",
     "babel-loader": "8.2.5",
@@ -14,6 +15,7 @@
     "new-line": "^1.1.1",
     "ol": "^7.4.0",
     "pg": "8.8.0",
+    "proj4": "^2.9.0",
     "url-loader": "4.1.1",
     "vue": "3.2.40",
     "vue-loader": "^17.0.0",
Add a comment
List