svg2marker
Convert SVG icon to G/Marker register
Usage
对g2 3.x开源版本
;; // 注册 plus symbolGMarkerSymbols'plus' = ; // 绘制 svgcontainer;
对g2 4.x TS版本
;;; // 注册 plus symbolGMarkersymbolsFactory; // 绘制 svgcontainer;
FAQ
- 为什么报错
${symbol} marker is not supported.
?
因为注册的G和绘图的G不一致导致的,应该改为同一个G引用
; ;
LICENSE
MIT