Replies: 3 comments 7 replies
-
I think you can create a layer that has an inline geojson source as the most "low" layer. |
Beta Was this translation helpful? Give feedback.
-
Actually it is already now possible to get this effect: The trick is to use a background pattern image with stripes. For example this one: And then use it as {
"id": "pattern-layer",
"type": "background",
"paint": {
"background-pattern": "pattern"
}
}, and map.loadImage('pattern.png',
function (err, image) {
if (err) throw err;
map.addImage('pattern', image);
}
); |
Beta Was this translation helpful? Give feedback.
-
Demo code https://github.com/wipfli/background-grid |
Beta Was this translation helpful? Give feedback.
-
In Google maps and I think also in Apple maps, you see a grid if the data has not been loaded yet:
Is there a way to get a similar effect in MapLibre? For example, can I style the background layer such that I see a grid?
Usually, I just have a background layer with a single color like this one:
But that is a bit boring because it has no structure. So when the users zooms or pans, it is nice to have the grid to give some visual feedback to the user input.
cc @lseelenbinder or @bdon, can't remember with whom I discussed this recently but might have been one of you...
Beta Was this translation helpful? Give feedback.
All reactions