This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
How do you implement the getMarkers() method on the <marker> directive #1560
Open
Description
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.