Using SVG markers in google_maps_flutter Flutter p

2019-07-25 18:02发布

问题:

Is it possible to use SVG paths to create a marker with the google_maps_flutter plugin? I know you can use .png files by using:

icon: BitmapDescriptor.fromAsset("images/myFile.png")

How about SVG paths?

Thanks

回答1:

just checked out the docs for BitmapDescriptor class You can try the fromAssetImage() class method

https://pub.dev/documentation/google_maps_flutter/latest/google_maps_flutter/BitmapDescriptor/fromAssetImage.html



标签: svg dart flutter