From efce8f72042f85bebea52b134b9cc55f9b6ec4a8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 11 Nov 2024 18:05:42 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=87?= =?UTF-8?q?=E0=B9=80=E0=B8=A7=E0=B8=A5=E0=B8=B2=20Map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../09_leave/components/1_Work/DialogMap.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/modules/09_leave/components/1_Work/DialogMap.vue b/src/modules/09_leave/components/1_Work/DialogMap.vue index 4827f42df..c08463974 100644 --- a/src/modules/09_leave/components/1_Work/DialogMap.vue +++ b/src/modules/09_leave/components/1_Work/DialogMap.vue @@ -2,9 +2,9 @@ import { ref, watch } from "vue"; import { loadModules } from "esri-loader"; -const apiKey = ref( - "AAPK4f700a4324d04e9f8a1a134e0771ac45FXWawdCl-OotFfr52gz9XKxTDJTpDzw_YYcwbmKDDyAJswf14FoPyw0qBkN64DvP" -); +// const apiKey = ref( +// "YLATgWuywoeRLHn6KImj5rg7UaP8bJoR9jiTldoCVBHlqFIebwMSA5wIXEmcYhwXwMHkmNISEYtUz3x0oiGIIx0bIXXnUwi0OzupoOEtDrQIsRPVtor7gaPpXEmH8TrNaMT3snf6zO_yujHLGzborg" +// ); const props = defineProps({ modal: { type: Boolean, @@ -33,9 +33,10 @@ async function initializeMap(lat: number, long: number) { "esri/Graphic", ]); // Set apiKey - esriConfig.apiKey = apiKey.value; + // esriConfig.apiKey = apiKey.value; const map = new Map({ - basemap: "arcgis-topographic", + // basemap: "arcgis-topographic", + basemap: "streets", }); const point = new Point({ @@ -51,7 +52,7 @@ async function initializeMap(lat: number, long: number) { latitude: lat, longitude: long, }, // Set the initial map center current position - zoom: 16, + zoom: 18, ui: { components: [], // Empty array to remove all default UI components },