标签: javascript html html5-canvas
我有位置数据,它返回给定中心点的纬度,经度以及距离和航向(角度)。例如,如果我在我周围搜索ATM,它会返回我周围的数据,如
{ location:[30.66,81.65], distance: 500, heading: 122 }, { location:[30.69,81.65], distance: 600, heading: 123 }
现在我想将这些数据绘制到画布上,我的位置为中心,所有其他点都在雷达上,如画布或图表。