Skip to content

Load image onto maplibre. #201

Answered by josxha
jesussmile asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. Add a new ImageSource using style.addSource()
  2. Add a new RasterStyleLayer using 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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josxha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature New feature or request
2 participants
Converted from issue

This discussion was converted from issue #199 on January 17, 2025 11:47.