Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-02-08 16:15:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e81bab86ccbd89b32645a98af021710bb1300941
e81bab86
1 parent
72c0315a
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
src/views/mapCutter.vue
src/views/mapCutter.vue
View file @
e81bab8
<!--
* @Date: 2025-01-22 11:40:12
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-02-08 1
5:36:57
* @LastEditTime: 2025-02-08 1
6: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(),
...
...
Please
register
or
login
to post a comment