echarts
echarts copied to clipboard
[Feature] areaColor.image support backgroundSize
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
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.