static/district.js
// requires state as USPS code and district as number
requires state as USPS code and district as number
requires state as USPS code and district as number
function reCenterMap(state="CA", district="27") {
    $("#map").attr('src', 'https://www.govtrack.us/congress/members/embed/mapframe?&bounds='+
        bboxes[state+district][0].toFixed(2)+","+
        bboxes[state+district][3].toFixed(2)+","+
        bboxes[state+district][2].toFixed(2)+","+
        bboxes[state+district][1].toFixed(2))
}
function reCenterMap ( state = "CA" , district = "27" ) { $ ( "#map" ) . attr ( 'src' , 'https://www.govtrack.us/congress/members/embed/mapframe?&bounds=' + bboxes [ state + district ] [ 0 ] . toFixed ( 2 ) + "," + bboxes [ state + district ] [ 3 ] . toFixed ( 2 ) + "," + bboxes [ state + district ] [ 2 ] . toFixed ( 2 ) + "," + bboxes [ state + district ] [ 1 ] . toFixed ( 2 ) ) }
requires state as USPS code and district as number
requires state as USPS code and district as number