Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有什么办法能够绕过uni-app封装层调用到更多的h5地图的能力? #4698

Closed
wangzz opened this issue Jan 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@wangzz
Copy link

wangzz commented Jan 22, 2024

目前uni-app只封装了有限的h5地图能力,如果希望调用腾讯地图h5版的更多地图能力,有什么可行的方式吗?

之前给了下面两种建议方式:

image

我们想基于uni-app去开发在h5和微信小程序中运行的业务,所以目前只能走第1种方式。要想绕过uni-app封装层去调用更多的h5地图能力,需要获取到h5的地图实例。通过看uni-app map组件的源码发现,获取到的地图实例是经过封装过的,并不是厂商提供的原始地图实例,因此没法自己去封装能力,我看到的map组件代码在这里: this._maps = result

请问uniapp类似下面腾讯地图官方demo里的创建底图实例的代码在哪个地方?如果能找到这个地方的源码我们就能基于此继续按第1钟思路自行进行能力扩展
https://lbs.qq.com/webDemoCenter/glAPI/glMap/createMap
image

希望能够指导下🙏🏻

@wangzz wangzz added the enhancement New feature or request label Jan 22, 2024
@zhetengbiji
Copy link
Collaborator

希望你回继续回原来的issue下补充讨论,不要一个一个的新开。

@wangzz
Copy link
Author

wangzz commented Jan 23, 2024

之前的issues已经被关闭,并且在后边讨论等了很久没有任何人回复
#4668

如果会回复,我也不希望重新开个issue @zhetengbiji

@Otto-J
Copy link
Member

Otto-J commented Jan 26, 2024

更多讨论请移步。
#4668 (comment)

本问题和 #4668 一样,不再进行更多讨论。

@dcloudio dcloudio locked as off-topic and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants