antvis / antvis/L7

Popup 不兼容火狐浏览器

Open
#2,545 14 comments 1 reaction 2 assignees Claimed by @lvisei View on GitHub
bug
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

![image](https://github.com/antvis/L7/assets/161019165/7f7dfd09-14d0-4660-8572-8f00770f4686)
event里feature字段的信息为null,获取不到该点的属性信息。
![image](https://github.com/antvis/L7/assets/161019165/583e7a24-159e-4f7c-8b5c-344aba76ced2)
这个是在谷歌浏览器下的情况。

### 重现链接

_No response_

### 重现步骤

function addPopup(e) {

const str = `

${e.feature.name}
`;
const popup = new Popup({
offsets: [0, 0],
closeButton: true,
closeOnClick: true,
maxWidth: '300px'
})
.setLnglat(e.lngLat)
.setHTML(str);
scene.addPopup(popup);
}

### 预期行为

可以正常显示,在几个主流浏览器上

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.