echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] areaColor.image support backgroundSize

Open citrusjunoss opened this issue 3 years ago • 1 comments

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

citrusjunoss avatar Dec 08 '22 11:12 citrusjunoss

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.

helgasoft avatar Oct 03 '24 02:10 helgasoft