none
BUG: lose event handlers on pins when change view with cluster module RRS feed

  • General discussion

  • Hi,

    I've expected an issue using the cluster module. Some (most of all but not all) click handlers on pins – organized in a clusterlayer – gets lost when change map view.

    Steps to reproduce:

    1. Load fiddle: https://jsfiddle.net/4m2xe00j/
    2. Click on an unclustered pin – an alert message will be show
    3. Drag or zoom the map
    4. Click on an unclustered pin – no alert message is shown (also the mouse pointer is not displayed as hand cursor)
    Wednesday, June 14, 2017 2:32 PM

All replies

  • Same here, never seen it happen before though.
    Wednesday, June 14, 2017 3:04 PM
  • This bug has been in the main release branch for a month or two now. A fix was added to the experimental branch a while back which is being rolled into the main release branch this week. Note that this only happened when you add your events to individual shapes (generally not recommended) rather than to the layer.

    [Blog] [twitter] [LinkedIn]

    Wednesday, June 14, 2017 3:14 PM
  • Okay, adding a click handler to the layer works for me – Thank you!

    Thursday, June 15, 2017 1:13 PM