Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

leaflet flyto

$('.tdclass').off('click').unbind('click').click(function(e){ //unbind and off is to remove the existing click events 
console.log(e);
console.log($(this).html());
console.log($(e).html());
    var lat = $(this).attr('data-latitude');
    var lng = $(this).attr('data-longitude');

    map.flyTo([lat,lng]);

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #leaflet #flyto
ADD COMMENT
Topic
Name
3+3 =