X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fmisc%2Fopenmap.html;h=15de2882af9e9a6e31c65e4ce7e09de830ab6a47;hb=HEAD;hp=88f64c1ffe53473884378f1da7813ac9ed5a9109;hpb=12ac7af853e51693f1bc7e49669974b9cd54e9bb;p=freeside.git diff --git a/httemplate/misc/openmap.html b/httemplate/misc/openmap.html index 88f64c1ff..15de2882a 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; }); } @@ -79,6 +78,6 @@ my $census_year = $cgi->param('census_year'); my $pre = $cgi->param('pre'); my $zip_code = $cgi->param('zip_code'); my $address = $cgi->param('address'); -my $loc = $zip_code ? $zip_code : $address; +my $loc = $zip_code ? $zip_code.', United States' : $address; - \ No newline at end of file +