mle 0930 - izudon/izudon.github.io GitHub Wiki
0930 Fit to the bounds of a LineString
map.fitBounds()
ใใใใใฎใใฆใณใใฃใณใฐใใใฏในใใใฆใฉใใใฃใฆ็ฎๅบใใใใ
const bounds = coordinates.reduce((bounds, coord) => {
return bounds.extend(coord);
}, new maplibregl.LngLatBounds(coordinates[0], coordinates[0]));
ใใพใใจๆใฃใ๏ผใปใใซๅฟ็จใๅนใใใ๏ผใ
- MapLibre Examples
Add a comment on every example of MapLibre GL JS by Masakazu IZUI