我正在尝试使用来自MongoDB地图集的数据在AGM地图上绘制数据。我不知道该怎么做。任何帮助,甚至伪代码,我们将不胜感激!如何从中提取坐标:MongoDB GeoJSON data
,然后将其绘制在我的AGM-MAP上(当前仅显示我的当前位置):
当前的Agm地图代码:
<agm-map [streetViewControl]="false" [styles]="mapStyles" [latitude]="latitude" [longitude]="longitude" [zoom]="zoom" (mapDblClick)="mapDoubleclick($event)"
[disableDoubleclickzoom]="true">
<agm-marker
[animation]="an"
[latitude]="latitude"
[longitude]="longitude"
[markerDraggable]="true"
[agmFitBounds]="true"
(dragEnd)="markerDragEnd($event)"></agm-marker> </agm-map>