viewof map = {
const container = yield html`<div style="height:800px">`
const map = (container.value = new maplibregl.Map({
container,
zoom: 7.5,
center: [129.45159098652664, 33.64287234545043],
localIdeographFontFamily: '"Hiragino Maru Gothic ProN W4", "Meiryo", serif',
style: STYLE
}))
map.on('load', () => {
map.addControl(new maplibregl.FullscreenControl())
const { MapboxLayer, Tile3DLayer } = deck
const layer = new MapboxLayer({
id: '3d',
type: Tile3DLayer,
pointSize: 1.6,
data: TILESET_URL,
loader: loaders.Tiles3DLoader,
loadOptions: {
tileset: {
}
}
})
map.addLayer(layer)
})
invalidation.then(() => map.remove());
}