选择应用类型
第三方个人应用开发
开发前必读
开发应用
应用管理
服务端API
客户端API
小程序
钉钉小程序介绍
小程序开发工具
小程序运行/更新机制
框架
基础组件
小程序JSAPI
JSAPI总览
基础
免登授权码
更新管理小程序
网络
多媒体
界面
小程序跳转
节点查询
位置
缓存
设备
地图
创建地图对象MapContext
MapContext
MapContext 概览
计算地图路径(calculateDistance)
添加/删除/更新指定标记(changeMarkers)
清除步行导航路线(clearRoute)
设置所有手势是否可用(gestureEnable)
获取当前地图中心位置(getCenterLocation)
获取地图属性(getMapProperties)
获取地图整体的视野范围(getRegion)
移动视野到定位点(moveToLocation)
规划默认步行路线(showRoute)
设置指南针是否可见(showsCompass)
设置比例尺控件是否可见(showsScale)
指定标记进行动画(smoothMoveMarker)
轨迹动画(smoothMovePolyline)
平移点标记(translateMarker)
增量更新地图(updateComponents)
点标记(Marker)图鉴
应用级事件
文件管理器
开放接口
钉钉统一授权套件
常见问题
历史文档

点标记(Marker)图鉴

更新于 2023-01-18

支持版本

钉钉客户端版本号为5.1.2及以后的版本。

Marker 样式优先级说明

  • customcallout、callout 与 label 互斥优先级: label > customcallout > callout。

  • style 与 icon 互斥优先级:style > iconAppendStr、style > icon。

style

图鉴列表

结构

图鉴

{ type:1, text1:"Style1", icon1:'xxx', icon2:'xxx'}

{ type:2, text1:"Style2", icon1:'xxx', icon2:'xxx'}

{ type:3, icon:xxx, //选填 text:xxx, //必填 color:xxx, //默认#33B276 bgColor:xxx, //默认#FFFFFF gravity:"left/center/right", //默认 center fontType:"small/standard/large" //默认standard}

customcallout

图鉴列表

结构

图鉴

{ "type": 0, "time": "3", "descList": [{ "desc": "点击立即打车", "descColor": "#ffffff" }], "isShow": 1}

{ "type": 1, "time": "3", "descList": [{ "desc": "点击立即打车", "descColor": "#333333" }], "isShow": 1}

{ "type": 2, "descList": [{ "desc": "预计", "descColor": "#333333" }, { "desc": "5分钟", "descColor": "#108EE9" }, { "desc": "到达", "descColor": "#333333" }], "isShow": 1}

label

参数列表

参数

是否必填

说明

content

内容。

color

颜色。

默认值:#000000。

fontsize

字号。

默认值:14。

borderRadius

绘图边角的弧度设置。

默认值:20。

bgColor

背景颜色。

默认值:#FFFFFF。

padding

填充。

默认值:10。

图鉴列表

结构

图鉴

{content:"Hello Label",color:"#000000",fontSize:16,borderRadius:5,bgColor:"#ffffff",padding:12,}

这篇文档是否有帮助?
点击纠错