uniapp微信小程序地图全屏显示配送范围

简介: uniapp微信小程序地图全屏显示配送范围

一、官方文档

微信小程序map官方文档:https://developers.weixin.qq.com/miniprogram/dev/component/map.html

二、显示效果图

三、源码

scale:缩放级别缩放级别,取值范围为3-20,数字越小,地图比例越大(单位面积内显示区域越大)

longitude:经度

latitude:维度

markers:标记点

circles:圆

color:描边颜色

radius:圆的半径,单位m

fillColor:填充颜色

strokeWidth:描边的宽度

iconPath:显示图标

<template>
  <view style="width: 100%;height: 100%;">
    <map style="width: 100%;height: 100vh;" scale=11 longitude="116.513" latitude="39.9313" :markers="markers" :circles="circles">
    </map>
  </view>
</template>
 
<script>
  export default {
    data() {
      return {
        circles: [{
          latitude: 39.9313,
          longitude: 116.513,
          color: '#FF0000DD',
          fillColor: '#7cb5ec88',
          radius: 5000,
          strokeWidth: 1
        }],
        markers: [{
          iconPath: "/static/mark.png",
          id: 0,
          longitude: 116.513,
          latitude: 39.9313,
          width: 30,
          height: 30
        }]
      }
    },
  }
</script>
 
<style>
</style>


四、原生小程序地图参考文章

 

小程序地图多个 circles 使用demohttps://blog.csdn.net/qq_35713752/article/details/103693671

目录
相关文章
|
7天前
|
小程序 前端开发 Java
|
7天前
|
存储 小程序 JavaScript
|
7天前
|
开发工具 Android开发
|
7天前
|
存储 前端开发 算法
|
7天前
|
存储 小程序 JavaScript
|
7天前
|
小程序 前端开发 安全
|
7天前
|
存储 前端开发 Java
|
7天前
|
小程序 前端开发 Java
|
7天前
|
JSON 小程序 前端开发
|
1天前
|
小程序
微信小程序开发---购物商城系统。【详细业务需求描述+实现效果】
这篇文章详细介绍了作者开发的微信小程序购物商城系统,包括功能列表、项目结构、具体页面展示和部分源码,涵盖了从首页、商品分类、商品列表、商品详情、购物车、支付、订单查询、个人中心到商品收藏和意见反馈等多个页面的实现效果和业务需求描述。
微信小程序开发---购物商城系统。【详细业务需求描述+实现效果】