[bug]tidy up pan+zoom URLs

This commit is contained in:
BigEd 2010-10-30 20:31:32 +00:00
parent bc8ef61fb9
commit 68e022a2bd

View File

@ -346,7 +346,7 @@ function setupChipLayoutGraphics(){
// utility function to save graphics pan and zoom // utility function to save graphics pan and zoom
function whereAmIAsQuery(){ function whereAmIAsQuery(){
var w=whereAmI(); var w=whereAmI();
return "panx="+w[0]+"&pany="+w[1]+"&zoom="+w[2] return "panx="+w[0].toFixed(1)+"&pany="+w[1].toFixed(1)+"&zoom="+w[2].toFixed(1);
} }
function whereAmI(){ function whereAmI(){
return [centerx, centery, zoom]; return [centerx, centery, zoom];