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
2023-06-07 16:41:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9bcec11bbffa0e1101cdd0586a4bc57aceeeca65
9bcec11b
1 parent
37b2a0a6
fix
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
index.html
src/common/tiantan_v2.js
src/components/InfoWindow.vue
src/views/index.vue
index.html
View file @
9bcec11
<!--
* @Date: 2023-01-09 15:22:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-05-29 14:18:36
* @FilePath: /map-demo/index.html
* @Description: 文件描述
-->
<!DOCTYPE html>
<html
lang=
'zh'
>
<head>
...
...
src/common/tiantan_v2.js
View file @
9bcec11
...
...
@@ -183,7 +183,7 @@ var spotInfo = [
},
{
name
:
'天王殿'
,
position
:
[
120.587
468
,
31.314435
],
position
:
[
120.587
639
,
31.314538
],
icon
:
'https://cdn.ipadbiz.cn/xys/map/%E6%AE%BF%E5%A0%82@2x.png'
,
details
:
[
{
...
...
src/components/InfoWindow.vue
View file @
9bcec11
...
...
@@ -30,7 +30,7 @@
<div class="van-hairline--top" style="margin: 1rem 0;">
<div @click="goToUrl()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;"
class="van-hairline--right">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E
5%89%8D%E5%BE%80
@2x.png" size="1.5rem" color="#FFF"
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E
8%AF%A6%E6%83%85
@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />
<span style="color: #AB8F57; font-size: 1.1rem;">详情</span>
</div>
...
...
src/views/index.vue
View file @
9bcec11
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-06-07 15:
37:23
* @LastEditTime: 2023-06-07 15:
58:14
* @FilePath: /map-demo/src/views/index.vue
* @Description: 地图主体页面
-->
...
...
@@ -29,7 +29,7 @@
<div style="text-align: left;">
<div v-for="(item, index) in navList[navName]" :key="index" @click="positionMarker(item)"
style="margin-bottom: 1rem; font-size: 1.15rem;">
<van-icon name="fire-o" color="
red" /> {{ item.name }}
<van-icon name="fire-o" color="
#965f13" /> <span style="color: #000;">{{ item.name }}</span>
</div>
</div>
</van-popup>
...
...
@@ -710,8 +710,8 @@ export default {
lockMapBounds() {
// var bounds = this.map.getBounds();
var myBounds = new AMap.Bounds(
[120.58
5138, 31.312908
],
[120.58
8839, 31.316492
]
[120.58
3246, 31.31645
],
[120.58
9973, 31.311949
]
);
this.map.setLimitBounds(myBounds);
...
...
Please
register
or
login
to post a comment