coderedcms/static/coderedcms/js/codered-maps.js
// Updates the list to the side of the map with markers that are in the viewport.
Updates the list to the side of the map with markers that are in the viewport.
Updates the list to the side of the map with markers that are in the viewport .
function updateList(features) {
        new_html = "";
        if (features.length == 0) {
            $("#LocationList").hide();
            $("#LocationListEmpty").show();
        } else {
            $("#LocationList").show();
            $("#LocationListEmpty").hide();
            for (i = 0; i < features.length; i++) {
                feature = features[i];
                new_html += feature.getProperty('list_description');
            }
        }
        $("#LocationList").html(new_html);
    }
function updateList ( features ) { new_html = "" ; if ( features . length == 0 ) { $ ( "#LocationList" ) . hide ( ) ; $ ( "#LocationListEmpty" ) . show ( ) ; } else { $ ( "#LocationList" ) . show ( ) ; $ ( "#LocationListEmpty" ) . hide ( ) ; for ( i = 0 ; i < features . length ; i ++ ) { feature = features [ i ] ; new_html += feature . getProperty ( 'list_description' ) ; } } $ ( "#LocationList" ) . html ( new_html ) ; }
Updates the list to the side of the map with markers that are in the viewport.
Updates the list to the side of the map with markers that are in the viewport .