hookehuyr

细节调整

......@@ -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:?}"
......
......@@ -215,7 +215,7 @@ var spotInfo = [
},
{
name: '观音殿',
position: [120.58801, 31.314724],
position: [120.58791, 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],
......
......@@ -282,6 +282,8 @@ export default {
line-height: 1.5;
float: left;
color: #7A6C6C;
font-size: 0.9rem;
margin-top: 0.5rem;
}
.info-control {
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-06-28 16:39:41
* @LastEditTime: 2023-06-29 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
......