Appearance
KBE3D / KBCore / turf / randomPosition
函数: randomPosition()
Function
Returns a random position within a bounding box.
参数
bbox?
a bounding box inside of which positions are placed.
返回
Position [longitude, latitude]
抛出
if bbox is invalid
示例
ts
var position = turf.randomPosition([-180, -90, 180, 90])
// => position