2017-07-05 12 views

答えて

4

http://turfjs.org/docs/#bufferを使用して、必要な半径のサイズのフィーチャを取得し、http://turfjs.org/docs/#bboxを使用してbboxを取得できます。

var point = { 
 
    "type": "Feature", 
 
    "properties": {}, 
 
    "geometry": { 
 
    "type": "Point", 
 
    "coordinates": [-90.548630, 14.616599] 
 
    } 
 
}; 
 
var buffered = turf.buffer(point, 5, 'kilometers'); 
 
var bbox = turf.bbox(buffered); 
 
console.log(turf.bboxPolygon(bbox));
<script src="https://npmcdn.com/@turf/turf/turf.min.js"></script>

+0

おかげで、魔法のように動作します。 – Rantiev

関連する問題