map = {
const container = yield html`<div style="height:800px;">`;
const map = (container.value = new maplibregl.Map({
boxZoom: true,
pitch: 0,
bearing: 0,
maplibreLogo: true,
container,
center: [-73.95757, 40.658],
zoom: 12,
style: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
scrollZoom: true
}));
map.on("load", () => {
map.addSource("nyc-likely-rs", {
type: "vector",
tiles: [tileUrl]
});
map.addLayer({
id: "likely-rs-data",
type: "fill",
source: "nyc-likely-rs",
"source-layer": "default",
paint: {
"fill-color": "#ff6600",
"fill-outline-color": "#ffffff",
"fill-opacity": 0.85
}
});
});
map.scrollZoom.disable();
map.addControl(new maplibregl.NavigationControl());
}