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

希望支持Map组件的自定义气泡窗口[customCallout]功能 #7507

Closed
itcat99 opened this issue Sep 3, 2020 · 17 comments · Fixed by #9184
Closed

希望支持Map组件的自定义气泡窗口[customCallout]功能 #7507

itcat99 opened this issue Sep 3, 2020 · 17 comments · Fixed by #9184
Assignees
Labels
A-typings Area - TypeScript Typings 相关 enhancement New feature or request
Milestone

Comments

@itcat99
Copy link

itcat99 commented Sep 3, 2020

这个特性解决了什么问题?

自定义地图上Marker气泡样式

这个 API 长什么样?

与微信小程序官方统一

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Sep 3, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 3, 2020

支持的吧,你是怎样写的

@itcat99
Copy link
Author

itcat99 commented Sep 3, 2020

支持的吧,你是怎样写的

Map.d.ts 文件里的 interface marker 里面没看到有customCallout属性... 在 256行只有callout

tarojs/compnents 版本为3.0.8

@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 3, 2020

types 漏了而已,直接用吧

@Chen-jj Chen-jj added the A-typings Area - TypeScript Typings 相关 label Sep 3, 2020
@itcat99
Copy link
Author

itcat99 commented Sep 3, 2020

好的 我试下, 另外 taro cli 的help有描述错了 就不提新issues了吧😂

--no-typescript 这一行 应该是 不使用TypeScript

image

@itcat99
Copy link
Author

itcat99 commented Sep 4, 2020

types 漏了而已,直接用吧

按照自定义气泡的官方示例并没有生效

@wangppp
Copy link

wangppp commented Sep 8, 2020

我今天也遇到了,通过renderCallout的方式不能自定义cover-view

@cl1107
Copy link

cl1107 commented Sep 9, 2020

支持的吧,你是怎样写的

这个在Taro3中要怎么写啊?按照小程序官网例子写没效果

@ImpChiang
Copy link

同遇到,不能自定义气泡 customCallout

@NyanShen
Copy link

解决了吗?taro typescript 怎么写自定义callout的

@kaneruan
Copy link

kaneruan commented Oct 6, 2020

同问

@kaneruan
Copy link

这个问题并没解决

@kaneruan
Copy link

@Chen-jj 麻烦看一下
#7934

@NyanShen
Copy link

NyanShen commented Oct 31, 2020

好纳闷哦,都找不到taro3,customCallout的markers和CoverView怎么绑定显示,文档只有slot,但是React不支持

@kaneruan
Copy link

临时解决办法; 改写 node_modules/@tarojs/shared/dist/index.js; 亲测有效

var CoverView = Object.assign({ 'scroll-top': 'false', 'marker-id': '', 'slot': '' }, touchEvents);

@Chen-jj
Copy link
Contributor

Chen-jj commented Apr 25, 2021

@gancao297871092
Copy link

真机上还是显示不出来

@bfrontend
Copy link

3.2.6 修复,文档地址:https://docs.taro.zone/docs/components/maps/map#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%B0%94%E6%B3%A1

文档也打不开呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typings Area - TypeScript Typings 相关 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants