From af228060b51d4308321dc8f926d5b203bfa8a7c7 Mon Sep 17 00:00:00 2001 From: handongxun Date: Fri, 15 Oct 2021 14:48:53 +0800 Subject: [PATCH] =?UTF-8?q?map:=20=E5=A2=9E=E5=8A=A0=E8=81=9A=E5=90=88API?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/location/map.md | 107 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/docs/api/location/map.md b/docs/api/location/map.md index 0de6ab78c..71b7dbc26 100644 --- a/docs/api/location/map.md +++ b/docs/api/location/map.md @@ -39,7 +39,7 @@ mapContext |setCenterOffset|OBJECT|设置地图中心点偏移,向后向下为增长,屏幕比例范围(0.25~0.75),默认偏移为[0.5, 0.5]||微信小程序| |toScreenLocation|OBJECT|获取经纬度对应的屏幕坐标,坐标原点为地图左上角。||微信小程序| |updateGroundOverlay|OBJECT|更新自定义图片图层。||App-nvue 3.1.0+,微信小程序| -|on|EventHandle|监听地图事件。||App-nvue 3.1.0+,微信小程序| +|on|Method|监听地图事件。||App-nvue 3.1.0+,微信小程序| |$getAppMap||获取原生地图对象 [plus.maps.Map](https://www.html5plus.org/doc/zh_cn/maps.html#plus.maps.Map)|app-vue|1.9.3| `$getAppMap()` 注意事项: @@ -210,6 +210,111 @@ mapContext ``` +地图聚合 API 示例(nvue) + +缩小地图可看到多个 marker 合并为 1 个并显示聚合数量,放大地图后恢复 + +``` + + + + + +``` + + ## mapSearch 模块(仅app-nvue支持) #### reverseGeocode(Object,callback) -- GitLab