【发布时间】:2016-04-04 15:38:09
【问题描述】:
对于角度谷歌地图,我希望我可以将存储的标记多边形数组绘制到地图上。
我使用的技术是:Angular version 1 with JavaScript,使用 angular 指令和 templateUrl。
这是我的 html 指令模板:
<ui-gmap-google-map center="config.map.center" zoom="config.map.zoom" options="config.map.options" events="config.map.events" draggable="true">
<ui-gmap-polygon path="compatiblePolygon" stroke="polygonConfig.stroke" fill="polygonConfig.fill" fit="true" static="true" visible="polygonConfig.visible" editable="polygonConfig.editable" draggable="polygonConfig.draggable" clickable="true" events="polygonConfig.events">
</ui-gmap-polygon>
<ui-gmap-markers models="compatiblePoints" coords="'self'" idKey="'id'"
options="pointsConfig.options"
clickable="true">
</ui-gmap-markers>
<ui-gmap-drawing-manager options="config.drawing.options" static="true" control="drawingManagerControl" events="config.drawing.events"></ui-gmap-drawing-manager>
</ui-gmap-google-map>
【问题讨论】:
标签: javascript angularjs google-maps google-maps-api-3 angular-google-maps