OnClick fired when clicking on zoom buttons

3 posts, 1 answers
  1. Warnestam
    Warnestam avatar
    86 posts
    Member since:
    Sep 2006

    Posted 02 Oct 2017 Link to this post

    Hi,

    We are placing markers when the user clicks on the map. A problem is that the OnClick event is also fired when the user clicks on one of the zoom-buttons (but not on one of the pan-buttons). 

    Is there anyway to separate a button click from a normal click? Alternative solutions could be using right clicks or even click/drag a marker itself.

     

    Kind regards

    Robert

     

  2. Answer
    Peter
    Peter avatar
    9 posts
    Member since:
    Jan 2017

    Posted 05 Oct 2017 Link to this post

    Hi Robert, 

    You can prevent the click event when the target of the click is inside the zoom control. Here is a dojo example that demonstrates the suggested approach using the underlying Kendo UI Map.

  3. Warnestam
    Warnestam avatar
    86 posts
    Member since:
    Sep 2006

    Posted 05 Oct 2017 in reply to Peter Link to this post

    Thanks! That will help us. Still think it should be considered as a bug.

    Regards

    Robert

Back to Top