viewof centerpoint = {
let container = html`<div style='height:400px;' />`;
yield container;
mapboxgl.accessToken = 'pk.eyJ1Ijoibnl0Z3JhcGhpY3MiLCJhIjoiY2o5YTlyb3ptMTB5bDMybXF2ODRjdThlYyJ9.cytRa2y0Qt3Nedj4eUX67w';
var map = new mapboxgl.Map({
container: container,
style: 'mapbox://styles/nytgraphics/cjmsjh9u308ze2rpk2vh41efx?optimize=true',
center: [-84.191605, 39.758949],
minZoom: 1,
maxZoom: 18,
zoom: 11
});
map.on('load', function() {
map.addSource('fsf', {
'type': 'raster',
'tiles': ['https://tiles-preview.firststreet.org/probability/depth/2035/100/{z}/{x}/{y}.png'],
'tileSize': 256
});
map.addLayer({
'id': 'fsf',
'source': 'fsf',
'type': 'raster',
'minzoom': 0,
'maxzoom': 18,
'paint': { 'raster-opacity': 0.5 } });
});
console.log(map.getCanvas().getContext('webgl'));
}