Replace a basemap layer with query data
This requires knowing the layer IDs in the style you want to replace. Use Maputnik to inspect styles.
---
title: Replace a basemap layer with query data
description: This requires knowing the layer IDs in the style you want to replace. Use [Maputnik](https://maplibre.org/maputnik) to inspect styles.
options:
zoom: 14
center: [-77.46829, 37.53255]
style:
extends: https://styles.trailsta.sh/openmaptiles-osm.json
layers:
- id: water
visiblity: none
- type: fill
beforeLayerId: water
fill-color: lightblue
---
[bbox:{{bbox}}];
nwr[natural=water];
out geom;