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
2024-09-20 16:14:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e278c105bd1da7521a60f4963c1b07ca996b980
1e278c10
1 parent
c27f7a6b
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
src/views/bieyuan/info.vue
src/views/bieyuan/map.vue
src/views/bieyuan/info.vue
View file @
1e278c1
<!--
* @Date: 2024-09-15 22:08:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 1
1:36:43
* @LastEditTime: 2024-09-20 1
5:56:20
* @FilePath: /map-demo/src/views/bieyuan/info.vue
* @Description: 文件描述
-->
...
...
@@ -177,7 +177,7 @@ const goTo = () => { // 打开标记地图显示
})
} else { // 地图页
//
//
emit("closeFloat", false);
emit("closeFloat", false);
//
emit("route", 'marker_id');
}
...
...
src/views/bieyuan/map.vue
View file @
1e278c1
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 1
1:51:29
* @LastEditTime: 2024-09-20 1
6:14:21
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -363,11 +363,10 @@ export default {
});
this.map.add(this.markerSum);
//
// setTimeout(() => {
// // 获取定位打标记
// this.setLocation();
// }, 1000);
//
setTimeout(() => {
// 获取定位打标记
this.setLocation();
}, 1000);
},
isPointInRing() { // 是否在景区范围
let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [
...
...
@@ -526,7 +525,6 @@ export default {
// 只显示相应区域,移动会回到选定范围
this.lockMapBounds()
},
// 限制地图范围
lockMapBounds() {
...
...
Please
register
or
login
to post a comment