worldmap/worldmap.js
function moveToMarks() {
    if (marks.length > marksIndex) {
        var m = marks[marksIndex];
        map.setView(m.getLatLng(), map.getZoom());
        m.openPopup();
        marksIndex++;
        setTimeout(moveToMarks, 2500);
    }
}
function moveToMarks() {
    if (marks.length > marksIndex) {
        var m = marks[marksIndex];
        map.setView(m.getLatLng(), map.getZoom());
        m.openPopup();
        marksIndex++;
        setTimeout(moveToMarks, 2500);
    }
}
function moveToMarks ( ) { if ( marks . length > marksIndex ) { var m = marks [ marksIndex ] ; map . setView ( m . getLatLng ( ) , map . getZoom ( ) ) ; m . openPopup ( ) ; marksIndex ++ ; setTimeout ( moveToMarks , 2500 ) ; } }
Jump to a markers position - centralise it on map
Jump to a markers position - centralise it on map