在 ioanic angularjs 应用程序中,我试图在谷歌地图上显示一些位置。我正在渲染谷歌并使用纬度和经度成功地居中地图,但我无法在该确切位置显示标记。这是代码视图
<ion-view title="Location" ng-controller="LocationDetailController as vm">
<ion-content class="has-header">
<ui-gmap-google-map draggable="true" center="vm.map.center" zoom="vm.map.zoom" options="options">
<ui-gmap-markers models="vm.marker" coords="'self'" fit='true' icon="'icon'">
</ui-gmap-google-map>
</ion-content>
</ion-view>
在 LocationDetailController 里面
...
vm.map = {
center: {
latitude: vm.details.Latitude,
longitude: vm.details.Longitude
},
zoom: 13
};
vm.marker = {
latitude: vm.details.Latitude,
longitude: vm.details.Longitude
};
...
我在这里缺少什么?