inputMap地图选择器

... 2022-9-15 Less than 1 minute

# inputMap地图选择器

<!-- 导入需要的包 (一定要放到index.html中的head标签里) -->
<!-- 高德地图api更新必须配合安全密钥使用 -->
<script>
  window._AMapSecurityConfig = {
    securityJsCode: 'xxxxx',
  }
</script>
<script type="text/javascript" src='https://webapi.amap.com/maps?v=1.4.11&key=xxxxxxxx&plugin=AMap.PlaceSearch'></script>
<script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
1
2
3
4
5
6
7
8
9
值:[ 113.10235504165291, 41.03624227495205, "内蒙古自治区乌兰察布市集宁区新体路街道顺达源广告传媒" ]
<el-row :span="24">
  <el-col :span="6">
   值:{{form}}<br/>
   <avue-input-map  :params="params" placeholder="请选择地图" v-model="form" ></avue-input-map>
  </el-col>
</el-row>
<script>
export default {
    data() {
      return {
        //高德初始化参数
        params:{
          zoom: 10,
          // zoomEnable: false,
          // dragEnable: false,
        },
        form:[ 113.10235504165291, 41.03624227495205, "内蒙古自治区乌兰察布市集宁区新体路街道顺达源广告传媒" ] ,
      }
    }
}
</script>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Expand Copy
Last update: September 15, 2022 11:06
Contributors: smallwei
您正在浏览基于 Vue 2.x 的 Avue 文档; 点击这里 查看 Vue 3.x 的升级版本