X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fopenmap.html;fp=httemplate%2Fmisc%2Fopenmap.html;h=a9a70337f68ba48bac6a660cdf3928e99cf760cd;hp=88f64c1ffe53473884378f1da7813ac9ed5a9109;hb=850f7e02ff0ca9f3514989d7d6c2a0ab96ac4e06;hpb=bf9b266acafce57cfa532801c00d45dc4eab765c diff --git a/httemplate/misc/openmap.html b/httemplate/misc/openmap.html index 88f64c1ff..a9a70337f 100644 --- a/httemplate/misc/openmap.html +++ b/httemplate/misc/openmap.html @@ -44,8 +44,7 @@ function getCensusTract(lat, lon) { var url = 'xmlhttp-censustract.html?lat=' + lat + '&lon=' + lon + '&census_year=<%$census_year%>'; $.getJSON(url,function(data){ - var tract = (data.Block.FIPS.substr(0, 11) / 100).toFixed(2); - document.getElementById("mycensustract").innerHTML = tract; + document.getElementById("mycensustract").innerHTML = data.Block.FIPS; }); } @@ -81,4 +80,4 @@ my $zip_code = $cgi->param('zip_code'); my $address = $cgi->param('address'); my $loc = $zip_code ? $zip_code : $address; - \ No newline at end of file +