Load image onto maplibre. #201
Answered
by
josxha
jesussmile
asked this question in
Q&A
-
Is it possible to load image as overlay on maplibre ? Like flutter_map rotated image overlay ? |
Beta Was this translation helpful? Give feedback.
Answered by
josxha
Jan 17, 2025
Replies: 1 comment
-
Hi @jesussmile, yes this should be possible. Although, I haven't tried tested it myself yet. We should definitively add an example for this! In theorie this is how it's done programmatically:
I did a quick test in Maputnik to apply it directly to the map style: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josxha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jesussmile, yes this should be possible. Although, I haven't tried tested it myself yet. We should definitively add an example for this!
You can either make these changes directly to your style json or add it programmatically after your style is loaded.
In theorie this is how it's done programmatically:
style.addSource()
style.addLayer()
using your previously created image source.There are some additional information in the MapTiler docs (althrough for MapLibre Native and not for Flutter): https://docs.maptiler.com/maplibre-gl-native-ios/ios-swiftui-raster-overlay/
I did a quick test in Maputnik to apply it directly to th…