对于没有坐标的记录,如何在海上地图上显示圆圈

How to show circle on map in sea for the records which don't have coordinates

我有 amcharts map 上面有圆圈。我几乎没有没有位置的记录(近 200 条)。这些记录(圆圈)我想在海map中显示,这样那些记录就会清晰可见。

我试过了,但是圈子不能正常工作。

这是我的代码

result.forEach(element => {

if(element.loc=='NULL')
{
  element.lat=30.461829+0.102189
  element.long=152.516679+0.290019
}
});

this.mapImageSeries.data=result;

开始 lat long 我从这里开始。

我的地图显示了一个地方的所有圆圈。我怎样才能展示一个和另一个呢?

使用下面的 Javascript 代码解决了这个问题

result.forEach(element => {
if(element.loc=='NULL')
{     
  var r = 1000590/111300, // = 100000 meters
  y0 = 27.990741,
  x0 = 153.556045,

  u = Math.random(),
  v = Math.random(),
  w = r * Math.sqrt(u),
  t = 2.3 * Math.PI * v,
  x = w * Math.cos(t),
  y1 = w * Math.sin(t),
  x1 = x / Math.cos(y0),
  newY = y0 + y1,
  newX = x0 + x1
  element.lat=newY
  element.long=newX
}
});