none
Events.removeHandler on a Polygon still use the "hand" pointer. RRS feed

  • General discussion

  • Removing a "click" handler on a polygon (for which I only added a click handler) will not "remove" the "hand" pointer when going over the polygon (However the handler IS removed and clicking on the polygon will not do anything.)

    At the moment the workaround I have is to remove and create a new polygon using the previous's locations, but I feel I shouldn't have to do that.

    (I tried to remove and add again the same polygon to the layer, but the "hand" still shows up, it has to be a different one.)

    Can anyone reproduce this behavior ?

    Wednesday, February 14, 2018 8:38 PM

All replies

  • I have been able to reproduce this and will log a bug for the team to fix this. Thanks for reporting.

    Another workaround which, will likely be less intensive, is to set the "cursor" option of the polygon. For example: 

    Microsoft.Maps.Events.removeHandler(evt);	
    polygon.setOptions({ cursor: 'default' });



    [Blog] [twitter] [LinkedIn]

    Wednesday, February 14, 2018 9:43 PM