krabouilleur opened a new issue, #18299:
URL: https://github.com/apache/echarts/issues/18299

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   There is an img : 
[https://lashermes.com/wp-content/uploads/map2.svg](https://lashermes.com/wp-content/uploads/map2.svg)
   This img has colors.
   
   if I load this image with registerMap: all element in the svg is black
   
   ```
   $.get(
     'https://lashermes.com/wp-content/uploads/map2.svg',
     function (svg) {
       echarts.registerMap('a', { svg: svg });
       option = {
         geo: {
           map: 'a',
           roam: true,
         },
         series: [
         ]
       };
       myChart.setOption(option);
     }
   );
   ```
   
   
   
   ### Current Behavior
   
   The content of svg is black. But this SVG is normally in color
   
![image](https://user-images.githubusercontent.com/53522372/220615054-efe36e06-4f6c-451d-a271-f7134e3f3d93.png)
   
   ### Expected Behavior
   
   The svg could be in color
   
![image](https://user-images.githubusercontent.com/53522372/220615174-b43b774f-b7d3-4439-9446-586415e183d7.png)
   
   
   ### Environment
   
   ```markdown
   echarts: 5.4.1
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to