hookehuyr

fix

<!--
* @Date: 2025-01-22 11:40:12
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-08 15:36:57
* @LastEditTime: 2025-02-08 16:15:04
* @FilePath: /map-demo/src/views/mapCutter.vue
* @Description: 文件描述
-->
......@@ -146,7 +146,7 @@ const zoom_options = [
const map_left_bottom_range = ref(null); // 120.583625,31.311858
const map_right_top_range = ref(null); // 120.591047,31.318265
const map_center = ref(null);
const map_center = ref([120.587648, 31.314616]);
const log_lnglat = ref('') // 获取当前地址经纬度
......@@ -181,12 +181,12 @@ const handleKeydown = (e) => { // 键盘控制
case '-':
scaleImage(0.99)
break
case 'r':
rotateMap(10)
break
case 'R':
rotateMap(-10)
break
// case 'r':
// rotateMap(10)
// break
// case 'R':
// rotateMap(-10)
// break
}
}
}
......@@ -205,7 +205,7 @@ function loadMap() {
map.value = new AMap.Map('map-container', {
zoom: 17,
zooms: zooms.value,
center: [120.587648, 31.314616],
center: map_center.value,
rotation: 0, // 初始地图角度
layers: [
new AMap.TileLayer.RoadNet(),
......