如何使用 ngmap 在多个标记之间绘制折线?
这是我使用 ng repeat 在动态标记上的 ngmap 代码
<div map-lazy-load="http://maps.google.com/maps/api/js" map-lazy-load-params="{{googleMapsUrl}}" class="fullmap">
<map center="{{mapCenter.lat}},{{mapCenter.lng}}" zoom="{{mapCenter.zoom}}" pan-control="true" scrollwheel="false" default-style="false" >
<custom-control id="searchCtrl" position="TOP_CENTER" index="1" on-click="doSearch()">
<button>Search</button>
</custom-control>
<marker ng-repeat="pos in positions" position="{{pos.latitude}}, {{pos.longitude}}"
title="({{pos.deviceTime| date:'medium'}}) GPS: {{pos.latitude}}/{{pos.longitude}}, Speed: {{pos.speed}}, Course: {{pos.course}}"
id="pos{{pos.id}}"
icon="{{'assets/green.png'}}"
visible="true">
</marker>
</map>
</div>