我使用这个:ngmap.github.io 和 ionic 框架。
我尝试像这个 js 代码一样以自然方式获取当前位置:
google.maps.event.addListener(map, 'idle', function(){
var bounds = map.getBounds();
//returns an object with the NorthEast and SouthWest LatLng points of the bounds
});
如何将此代码转换为 angularjs?