-
Notifications
You must be signed in to change notification settings - Fork 640
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
弹窗无法监听close,弹窗关闭重新设置html后自动打开 #1846
Labels
👀 need more info
issue 需要提供更多描述信息
Comments
Hello @szygiser. Please provide a online reproduction by forking codesandbox of @antv/l7 demo template Issues labeled by 你好 @szygiser, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 @antv/l7 demo 模板 3 天内未跟进此 issue 将会被自动关闭。 |
1.Popup 隐藏对应的是 |
This was referenced Sep 14, 2023
This was referenced Oct 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import { Scene, GaodeMap, Popup } from '@antv/l7';
const scene = new Scene({
id: 'map',
map: new GaodeMap({
pitch: 0,
style: 'normal',
center: [120.154672, 30.241095],
zoom: 12,
}),
logoVisible: false,
});
scene.on('loaded', () => {
const popup = new Popup({
title: '自定义标题',
html: '
Popup 示例的自定义内容
',lngLat: {
lng: 120.154672,
lat: 30.241095,
},
});
scene.addPopup(popup);
popup.on('close',()=>{
alert('关闭')
})
setInterval(()=>{
popup.setHTML('
Popup 示例的
');},10000)
});
The text was updated successfully, but these errors were encountered: