Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何计算 fitBounds() 方法的坐标点以获取 MapBox 中的确切区域?
要将坐标转换为边界框,您可以使用turf.bbox:
turf.bbox
var featureBbox = turf.bbox(feature);