How do you implement the getMarkers() method on the <marker> directive
How do you use the getMarkers() method to retrieve the collection of markers? I've tried to use var markers = $scope.map.markerscontrol.getGMarkers(); but it only returns the last item in the list.
Made a plunkr http://plnkr.co/edit/Tl60bVydDQ3jIXqG6nIc
I wanna use the markers to calculate the bounds and map center.
getPlurals it was made universal back in 2.0 I think.
Oh your using singlular marker; yeah so Plurals is not on that as it is not a plural directive. So getGMarkers seems to be not working right. I recommend not using ui-gmap-marker anyway infavor of ui-gmap-markers.
Its a bug and it should be easy to fix; but is it worth it?