worldmap/worldmap.js
function clearSearch() {
    var value = document.getElementById('search').value;
    marks = [];
    marksIndex = 0;
    for (var key in markers) {
        if ( (~(key.toLowerCase()).indexOf(value.toLowerCase())) && (mb.contains(markers[key].getLatLng()))) {
            marks.push(markers[key]);
        }
    }
    removeMarks();
    if (lockit) {
        document.getElementById('searchResult').innerHTML = "";
    }
    else {
        document.getElementById('searchResult').innerHTML = "";
    }
}
function clearSearch() {
    var value = document.getElementById('search').value;
    marks = [];
    marksIndex = 0;
    for (var key in markers) {
        if ( (~(key.toLowerCase()).indexOf(value.toLowerCase())) && (mb.contains(markers[key].getLatLng()))) {
            marks.push(markers[key]);
        }
    }
    removeMarks();
    if (lockit) {
        document.getElementById('searchResult').innerHTML = "";
    }
    else {
        document.getElementById('searchResult').innerHTML = "";
    }
}
function clearSearch ( ) { var value = document . getElementById ( 'search' ) . value ; marks = [ ] ; marksIndex = 0 ; for ( var key in markers ) { if ( ( ~ ( key . toLowerCase ( ) ) . indexOf ( value . toLowerCase ( ) ) ) && ( mb . contains ( markers [ key ] . getLatLng ( ) ) ) ) { marks . push ( markers [ key ] ) ; } } removeMarks ( ) ; if ( lockit ) { document . getElementById ( 'searchResult' ) . innerHTML = "" ; } else { document . getElementById ( 'searchResult' ) . innerHTML = "" ; } }
Clear Search With Marker names
Clear Search With Marker names