先看定义
declare function createIcon(iconStr: string, // Support 'image://' or 'path://' or direct svg path.
经过测试:需要是绝对路径或者data:imgage ,path:XXX形式。
image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA OK
image:///marker1.png OK
image://http://localhost:3000/marker3.png OK
image://./marker2.png ERROR
img: 'image://./logo.svg' ERROR
img: require('./marker1.png') ERROR