Marker click event

7 posts, 1 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Feb 2014

    Posted 13 May 2014 Link to this post

    Hi,

    Just wondering if anyone knows how I can catch a click event when a user clicks on a marker. There are click and shapeClick events but dosent seem to be a marker specific event.

    Any suggestions greatly appreciated.

    Cheers,
    M
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 14 May 2014 Link to this post

    Hi Michael,

    At this point Kendo UI Map does not raise a click events for the markers. As a possible workaround I can suggest displaying markers.tooltip on "click" and attach a handler to the show event
    $("#map").kendoMap({
      //....
      markers: [{ 
         //....
         tooltip: {
            content: "Austin, TX",
            showOn: "click",
            show: onShow
         }
      }]
    });
     
    function onShow(){
       //....
    }

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Michael
    Michael avatar
    3 posts
    Member since:
    Feb 2014

    Posted 14 May 2014 in reply to Iliana Nikolova Link to this post

    Thanks IIiana :)
  5. Warren
    Warren avatar
    4 posts
    Member since:
    Jun 2014

    Posted 08 Oct 2014 in reply to Iliana Nikolova Link to this post

    Iliana,
    does this work with 'type: "tile"' types or ONLY 'type: "shape"'

    see my http://dojo.telerik.com/@wcaulton/iLOCA using tile but no location coordinates showing.
  6. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 10 Oct 2014 Link to this post

    Hi Warren,

    I am glad to inform you that markerClick event is already available. For your convenience here is the updated example.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Warren
    Warren avatar
    4 posts
    Member since:
    Jun 2014

    Posted 10 Oct 2014 in reply to Iliana Nikolova Link to this post

    Thanks for the update, I did not get the marker info as expected. I have another example here.

    Again my question is: Does the type:  "shape" or "tile" make a difference? It appears to.

    Thanks for the help.
  8. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 13 Oct 2014 Link to this post

    Hi Warren,

    I am not quite sure what the expected info is, however in the markerClick event you have the marker instance. Please take a look at this updated example and let me know if I am missing something.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready