-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using angular-gm with MarkerClusterer #87
Comments
Hi Nick,
If you need a direct handle on the map, you can do so as outlined here
<http://dylanfprice.github.io/angular-gm/2.0.1/docs/#/api/angulargm.service:angulargmContainer>.
From there you can probably achieve what you want though it might be messy.
A cleaner approach would probably be to implement your own directive which
utilizes the angulargmMapController
<https://github.com/dylanfprice/angular-gm/blob/master/src/controllers/angulargmMapController.js>
and it's associated methods to manipulate the markers. For instance you can
call `controller.forEachElement('marker', myFn)` to put your markers into
different groups.
Hope that helps.
…On Wed, Jan 11, 2017 at 11:46 PM, nicksche ***@***.***> wrote:
I want to use Google MarkerClusterer for grouping markers, but i can't get
instance for map and marker .
Maybe you know some other way to realize grouping for markers ?
Thanks,
Nick
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#87>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANc_pJDwZcKs2I4Q1FbA_Uhy_Nv1UHWks5rRdpqgaJpZM4Lhdbp>
.
|
I've been working on this a bit and have made some progress, but I'm having a problem when I have several sets of markers and only want to group one of them. Because of transclusion, I'm not sure how to find the correct scope ID for the set of markers I am interested in. Here's a little demo: http://plnkr.co/edit/itJxTv?p=preview |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to use Google MarkerClusterer for grouping markers, but i can't get instance for map and marker .
Maybe you know some other way to realize grouping for markers ?
Thanks,
Nick
The text was updated successfully, but these errors were encountered: