Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

[Feature] Implement get('markers') #136

Open
DevDaveo opened this issue May 6, 2017 · 2 comments
Open

[Feature] Implement get('markers') #136

DevDaveo opened this issue May 6, 2017 · 2 comments

Comments

@DevDaveo
Copy link

DevDaveo commented May 6, 2017

Besides providing getting objects by an index it would be great to allow getting an array of all added markers (or infowindows, polygon etc) as Array of these objects.

@simonl65
Copy link

simonl65 commented Jul 9, 2017

+1

@matadur
Copy link

matadur commented Sep 28, 2017

I've discovered you can get the array of markers this way:
$('.map').gmap3().get(1)

If using the fit() method, the array is at:
$('.map').gmap3().get(2)

You can also save a reference to the map when you create it and that to access the markers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants