Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

fix .setMap(null) #81

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

jerrywang121
Copy link

fix MarkerClusterer.setMap(null) - issue #47

  1. added MarkerClusterer.onRemove()
  2. added MarkerClusterer.listeners to keep track of listeners on map
  3. moved listeners (de)registration into MarkerClusterer.setReady_()
  4. extend MarkerClusterer.setReady_() to cover following action on .setMap(null) call
    a. clear clutters[]
    b. set all markers with null map
    c. remove event listeners on previous map

fix MarkerClusterer.setMap(null) - issue googlearchive#47

1. added MarkerClusterer.onRemove()
2. added MarkerClusterer.listeners to keep track of listeners on map
3. moved listeners (de)registration into MarkerClusterer.setReady_()
4. extend MarkerClusterer.setReady_() to cover following action on .setMap(null) call
    a. clear clutters[] 
    b. set all markers with null map
    c. remove event listeners on previous map
@aesculus
Copy link

I pulled this but got Google Map errors when I used it in place of the original.

@aesculus
Copy link

I applied the fixes directly to the original and it works. Not sure where I went wrong with extracting the source from the package. :-(

@doapp-ryanp
Copy link

Can this be merged please?

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

Successfully merging this pull request may close these issues.

3 participants