Skip to content

Instantly share code, notes, and snippets.

/*
This query looks for nodes, ways and relations
with the given key.
Choose your region and hit the Run button above!
*/
[out:json][timeout:25];
// gather results
(
// query part for: “"building:part"=*”
node["building:part"]({{bbox}});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We couldn’t find that file to show.
@astojilj
astojilj / route.geojson
Created February 24, 2022 08:02
route.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astojilj
astojilj / after_setting_style.js
Last active August 17, 2023 04:49
Hiding trees layer from style programatically
map.on('style.load', function() {
const treesLayerId = map.style._order.find((id) => map.style.getLayer(id).type === 'model' && id.startsWith("trees"));
if (treesLayerId) {
map.setLayoutProperty(treesLayerId, 'visibility', 'none');
}
});