antvis / antvis/L7

pointLayer.shape(img),只在mac M1 本机浏览器大小受限,外接显示器或者其他电脑,.size()都是生效的。这个除了使用marker图层以外,可以从根本上解决这个问题吗

Open
#1,762 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/antvis/L7/assets/32298068/d6be3132-30c0-44fe-874b-06f906b8a84b)

pointLayer.shape(img),只在mac M1 本机浏览器大小受限,外接显示器或者其他电脑,.size()都是生效的。这个除了使用marker图层以外,可以从根本上解决这个问题吗
当前l7版本为最新版本。
外接显示器:
![image](https://github.com/antvis/L7/assets/32298068/cd88abee-02d0-49d2-9f72-3c8e96fe956f)
mac显示器:
![image](https://github.com/antvis/L7/assets/32298068/95f09adf-3d4d-49e4-bfa8-628178db7ea3)
电脑配置:
![image](https://github.com/antvis/L7/assets/32298068/a7970a86-d01d-476d-be2a-214f81b9012e)
![image](https://github.com/antvis/L7/assets/32298068/08f167d1-04cc-4322-be4c-aac07cad627c)
代码示例【官方】:
https://l7.antv.antgroup.com/examples/point/image/#image

Contributor guide

Open the contributing guide

Research direction

Start with the official image point example at https://l7.antv.antgroup.com/examples/point/image/ and reproduce the pointLayer.shape(img) sizing difference on the Mac M1 internal display and an external display. Trace the image layer sizing path and identify why .size() behaves differently; done means the example renders consistent image sizes across the reported environments without requiring a marker layer.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.