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-29 11:33:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b2c5d3e65b001f57bcd5becb3ef78d8df8c9284
1b2c5d3e
1 parent
b9465607
细节调整
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
20 deletions
publish.sh
src/common/tiantan_v2.js → src/common/map_data.js
src/components/InfoWindow.vue
src/views/index.vue
publish.sh
View file @
1b2c5d3
...
...
@@ -20,12 +20,12 @@ output=map
npm run build
# 移除Git服务器目录下项目文件夹
#
rm -r $path"/${output:?}/images"
rm -r
$path
"/
${
output
:?
}
/images"
rm -r
$path
"/
${
output
:?
}
/index.html"
rm -r
$path
"/
${
output
:?
}
/static"
# 把本地编译输出文件夹添加到服务器目录
#
mv "${output:?}/images" $path"/${output:?}"
mv
"
${
output
:?
}
/images"
$path
"/
${
output
:?
}
"
mv
"
${
output
:?
}
/index.html"
$path
"/
${
output
:?
}
"
mv
"
${
output
:?
}
/static"
$path
"/
${
output
:?
}
"
...
...
src/common/
tiantan_v2
.js
→
src/common/
map_data
.js
View file @
1b2c5d3
...
...
@@ -215,7 +215,7 @@ var spotInfo = [
},
{
name
:
'观音殿'
,
position
:
[
120.58
801
,
31.314724
],
position
:
[
120.58
791
,
31.314799
],
icon
:
'https://cdn.ipadbiz.cn/xys/map/%E6%AE%BF%E5%A0%82@2x.png'
,
details
:
[
{
...
...
@@ -233,20 +233,20 @@ var spotInfo = [
[
120.587815
,
31.313439
],
],
},
{
name
:
'藏经楼'
,
position
:
[
120.587481
,
31.316285
],
icon
:
'https://cdn.ipadbiz.cn/xys/map/%E6%AE%BF%E5%A0%82@2x.png'
,
details
:
[
{
name
:
'藏经楼'
,
note
:
''
,
url
:
''
,
},
],
window_type
:
'normal'
,
path
:
[],
},
//
{
//
name: '藏经楼',
//
position: [120.587481, 31.316285],
//
icon: 'https://cdn.ipadbiz.cn/xys/map/%E6%AE%BF%E5%A0%82@2x.png',
//
details: [
//
{
//
name: '藏经楼',
//
note: '',
//
url: '',
//
},
//
],
//
window_type: 'normal',
//
path: [],
//
},
{
name
:
'西花园湖心亭'
,
position
:
[
120.58653
,
31.315118
],
...
...
src/components/InfoWindow.vue
View file @
1b2c5d3
...
...
@@ -282,6 +282,8 @@ export default {
line-height: 1.5;
float: left;
color: #7A6C6C;
font-size: 0.9rem;
margin-top: 0.5rem;
}
.info-control {
...
...
src/views/index.vue
View file @
1b2c5d3
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-06-2
8 16:39:41
* @LastEditTime: 2023-06-2
9 11:33:19
* @FilePath: /map-demo/src/views/index.vue
* @Description: 地图主体页面
-->
...
...
@@ -90,7 +90,7 @@
<script>
// import { mapState } from 'vuex'
import coord from '@/common/
tiantan_v2
'
import coord from '@/common/
map_data
'
import _ from 'lodash';
import $ from 'jquery';
//引入定义的信息窗组件
...
...
@@ -929,7 +929,8 @@ export default {
setTimeout(() => {
// 地图zooms调整
this.map.setZoom(18);
this.map.setZoomAndCenter(18, [this.xys_lng, this.xys_lat]);
// this.map.setZoomAndCenter(18, [this.xys_lng, this.xys_lat]);
this.map.setZoomAndCenter(18, [120.587382, 31.313900]);
}, 100);
this.removeNavRoute()
},
...
...
@@ -1288,3 +1289,4 @@ export default {
font-size: 0.8rem;
}
</style>
@/common/map_data
...
...
Please
register
or
login
to post a comment