flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

addSymbol #1322

Closed BObo-come closed 1 year ago

BObo-come commented 1 year ago

Can the value of the iconImage parameter in the addSymbol method only be images registered in the yaml file? Why can't I load images from my phone that I want to use

aardrop commented 1 year ago

No, they don't need to be in the YAML file.

I have my images in a folder in my assets folder. Make sure your assets are added in your pubspec and that the filet ype of your images is compatible with the package. We have all our map icons as pngs loading from assets like this:

Controller.addSymbol(
        SymbolOptions(
          geometry: geometry,
          iconImage: "assets/image.png"
        ),
)
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.