-
-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation on loading bitmaps on MAUI #2743
Comments
Here is a bit of trace from debugging the application when it tries to use an ambedded image (png) as an image source:
What I find noteworthy as that there are no other embedded resources found either 9even though I have multiple images under Resources/Images) |
You can view the pathes of the embedded images with a tool like dotpeek. https://www.jetbrains.com/de-de/decompiler/ |
Thank you! Kind regards, Julius |
Yes would be nice If you could do a pull request or write something for improving the documentation. |
The problem
When trying to load a bitmap image on MAUI for a symbol style, I keep getting errors that my image cannot be found.
I follow the Beta documentation as i found here:
Mapsui/docs/general/markdown/imagesource.md
Line 25 in 37f6020
I tried various versions of this method:
myStyle.ImageSource = "embedded://Mapsui.Resources.Images.Pin.svg"
but neither images in the Resources/Images or Resources/Raw folder can be found.
The proposed solution
Please document a example of loading a local image from Resources/Images or Resources/Raw on MAUI.
Alternative solutions
Explain how an embedded:// URL can be used to load a Resources/Image or Resources/Raw.
Additional context
I tried various versions, with or without the assembly name, with our withour Resources etc.
The text was updated successfully, but these errors were encountered: