You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
When marker cluster is removed from map calling map.clear(), all marker clusteres added to map after that not bind marker clicks callback function.
Expected behavior:
When marker cluster is removed from map by map.clear(), newly added marker clusters should bind marker click callbacks.
Steps to reproduce:
Add marker cluster using map.addMarkerCluster() and put markers click event to it callback function:
markerCluster.on(plugin.google.maps.event.MARKER_CLICK, function (position, marker) {
alert('marker click');
});
run map.clear()
Add add new marker cluster with the same code above.
JS console outputs -----> This is remained cluster icon : markercluster_69040575 after click on marker. Click events callback is not fired. It happens only, when cluster is removed and then added to map again - with the same marker options array in markes property. Tested with 5692f3d commit
I'm submitting a ... (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
The plugin version: (check one with "x")
[ ] 1.4.x
[x] 2.0.0-beta3
If you choose 'problem or bug report', please select OS: (check one with "x")
[x] Android
[ ] iOS
cordova information: (run
$> cordova plugin list
)Current behavior:
When marker cluster is removed from map calling
map.clear()
, all marker clusteres added to map after that not bind marker clicks callback function.Expected behavior:
When marker cluster is removed from map by
map.clear()
, newly added marker clusters should bind marker click callbacks.Steps to reproduce:
Add marker cluster using
map.addMarkerCluster()
and put markers click event to it callback function:run
map.clear()
Add add new marker cluster with the same code above.
Marker click event not firing callback function.
Screen capture or video record:
https://www.youtube.com/watch?v=4aCpI8tHtU8
Related code, data or error log (please format your code or data):
https://github.com/lpikora/cluster_test
The text was updated successfully, but these errors were encountered: