SVG: 合并 切换 path fill,高德地图:自定义marker
export default (props) => {
const { styles, color = '#4D88FF', type = 'Electricity' } = props
return return `<svg width="53" height="53" viewBox="0 0 53 53">
<g fill="#203255">
<circle
class=${styles.svg_circle}
style="stroke: inherit; filter: none; fill: inherit"
cx="26"
cy="26"
r="26"
/>
</g>
<svg
x="12"
y="12"
width="26px"
height="26px"
viewBox="0 0 1024 1024" >
${SvgMaps[type]}
</svg>
</svg>`
};
lnglats.map((item: any) => {
const marker = new AMap.Marker({
map: iMap,
position: item,
content: SVG
});