Map layer sync when moving camera isn't so good #415
Unanswered
OfekWeinberger
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hey @OfekWeinberger, always nice to see someone using the OpenSeaMap.😄
But in your case, you might be fine by adding the raster openseamap layer to the maplibre style programmatically. A maplibre style doesn't have to be only vector data, you can render raster layers and even symbols more efficiently as well. Future<void> onStyleLoaded(StyleController style) async {
await style.addSource(
RasterSource(
id: 'openseamap,
tiles: ['https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png'],
maxZoom: 18,
tileSize: 256,
),
);
await style.addLayer(
RasterStyleLayer(
id: 'openseamap',
sourceId: 'openseamap',
),
);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on an app (using flutter_map), and for a long time I want to migrate to vector tiles. To keep my code-base (which depend on flutter_map very deeply) I tried using the maplibre plugin. I have a vector base map (versatiles) and on top of it, I have an OpenSeaMap raster layer. When moving the map I notice a severe sync issue between the layers. Attached short video showing this issue. Any ideas?
Thanks for all the amazing work and progress here!
layer-sync-issue.mp4
Beta Was this translation helpful? Give feedback.
All reactions