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

[Feature] areaColor.image support backgroundSize #18041

Open
citrusjunoss opened this issue Dec 8, 2022 · 1 comment
Open

[Feature] areaColor.image support backgroundSize #18041

citrusjunoss opened this issue Dec 8, 2022 · 1 comment
Assignees
Labels
en This issue is in English new-feature

Comments

@citrusjunoss
Copy link

What problem does this feature solve?

When areaColor.image sets repeat to 'not-repeat', the size of the image cannot be controlled, resulting in misalignment of the background image and the map layer.

What does the proposed API look like?

The background image of the map supports backgroundSize: '100% 100%' configuration similar to the backgroundSize of css under the option of not-repeat

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Dec 8, 2022
@echarts-bot echarts-bot bot changed the title [Feature] areaColor.image support backgroundSize [Feature] areaColor.image support backgroundSize Dec 8, 2022
@Ovilia Ovilia removed the pending We are not sure about whether this is a bug/new feature. label Dec 9, 2022
@Ovilia Ovilia self-assigned this Dec 9, 2022
@helgasoft
Copy link

the size of the image cannot be controlled

actually size can be controlled with (undocumented) parameters scaleX and scaleY - Demo.
However responsive position cannot be set, like CSS background-position: center;, see #20385.
There are (undocumented) parameters x and y, but they represent non-responsive, fixed pixel positions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature
Projects
None yet
Development

No branches or pull requests

3 participants