You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
61 lines
1.9 KiB
1 year ago
|
<template>
|
||
|
<view>
|
||
|
<view>
|
||
|
<a href="http://uri.amap.com/navigation?from=114.02597366,22.54605355&to=114.029243,22.609562&mode=car&src=nyx_super;">高德地图</a>
|
||
|
</view>
|
||
|
<view>
|
||
|
<a href="https://uri.amap.com/marker?position=114.02597366,22.54605355&name=深圳南山">高德地图OK</a>
|
||
|
</view>
|
||
|
<view>
|
||
|
<a href="http://api.map.baidu.com/marker?location=114.02597366,22.54605355&title=深圳南山&content=介绍深圳南山bbb&output=html">百度地图——不太ok</a>
|
||
|
</view>
|
||
|
<view>
|
||
|
<a href='http://apis.map.qq.com/uri/v1/marker?marker=coord:31.2353,121.48108;addr:上海市人民广场'>腾讯地图</a>
|
||
|
</view>
|
||
|
<view>
|
||
|
<a href='http://apis.map.qq.com/uri/v1/marker?marker=coord:22.54605355,114.02597366;addr:深圳南山'>腾讯地图2</a>
|
||
|
</view>
|
||
|
<view>
|
||
|
<a href='https://apis.map.qq.com/uri/v1/marker?marker=coord:39.892326,116.342763;title:超好吃冰激凌;addr:手帕口桥北铁路道口&referer=myapp'>腾讯地图3</a>
|
||
|
</view>
|
||
|
|
||
|
<view class="btna" @click="mapbtn">确定</view>
|
||
|
<!-- <view class="page-body">
|
||
|
<view class="page-section page-section-gap">
|
||
|
<map style="width: 100%; height: 100vh;" :latitude="latitude" :longitude="longitude" :markers="covers" :show-compass="true"></map>
|
||
|
</view>
|
||
|
</view> -->
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
id:0, // 使用 marker点击事件 需要填写id
|
||
|
title: 'map',
|
||
|
latitude: 39.909,
|
||
|
longitude: 116.39742,
|
||
|
covers: [{
|
||
|
latitude: 39.909,
|
||
|
longitude: 116.39742,
|
||
|
iconPath: '/static/images/frontend/add.svg'
|
||
|
}, {
|
||
|
latitude: 39.90,
|
||
|
longitude: 116.39,
|
||
|
iconPath: '/static/images/frontend/add.svg'
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
mapbtn() {
|
||
|
location.href="https://m.amap.com/picker/?keywords=写字楼,小区,学校&zoom=15¢er=116.470098,39.992838&radius=1000&total=20&key=(您的Key)"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
|
||
|
</style>
|