[Feature]: 提供 map 地图组件及第三方地图服务接入方案

Open
#332 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@dos1in is already working on this.

Since Sep 8, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement
目标模块 / Component

组件或 API 兼容性

背景与问题 / Problem

希望官方提供的 map 地图组件,支持小程序业务中的地图展示、定位、标记和地图交互等基础场景。
同时,希望官方提供第三方地图服务的推荐接入方式,例如高德地图、腾讯地图或其他地图服务。

建议方案 / Proposed Solution
  1. 提供与微信小程序 map 组件兼容的基础能力。
  2. 提供地图相关 API 和事件的使用方式。
  3. 明确第三方地图服务的接入方案,包括:
    • 地图服务商选择;
    • API Key 配置方式;
    • Android、iOS、HarmonyOS 和 Web 的实现方式;
    • 原生地图 SDK 与小程序代码实现的职责边界;
    • 地图服务商切换或扩展机制;
    • 定位权限、隐私合规和错误处理方式。
  4. 提供最小使用示例和接入文档。
使用示例与验收标准 / Use Case and Acceptance Criteria

1官方提供 map 组件及基础地图能力。
2官方提供第三方地图服务的推荐接入方案。
3明确地图能力应由原生 SDK 实现,还是由小程序代码实现,或采用两者结合的方式。
4提供各平台的配置说明、使用示例和能力差异说明。
5提供地图服务 Key、定位权限和隐私合规相关说明。

目标平台 / Target Platforms

Android, Harmony, iOS, Web

兼容性与影响 / Compatibility and Impact

希望参考微信小程序 map 组件的公开能力,并尽量保持跨平台 API 和使用方式一致。
参考文档:
https://developers.weixin.qq.com/miniprogram/dev/component/map.html

替代方案 / Alternatives

目前暂无统一的官方地图组件和第三方地图服务接入规范,业务方难以确定地图功能应采用原生实现还是小程序代码实现

是否愿意参与实现 / Contribution

None

参考资料或附件 / References

No response

补充信息 / Additional Context

No response

提交检查 / Checklist
  • 我已搜索现有 Issues,确认没有相同建议。
  • 这是一项明确的功能建议,而不是使用咨询或故障报告。
Dominant language
JavaScript
Stars
968
Forks
109
Avg merge
1d 2h
Merged PRs (30d)
21

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from didi/dimina

All issues in didi/dimina

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.