Solved! Go to Solution.
This doesn't answer your question, but ... if possible, you might want to use a scale bar instead of a 1:scale. This way it would be less confusing and would be correct on both your computer screen, a projected big screen and printed out.
private function calcScale():Number { var lodsInfo:LOD = map.lods[map.level] as LOD; //get resolution ie: 1 pixel = x map units (m) where x is the resolution var resInches:Number = lodsInfo.resolution * 39.3701; //convert res from m to inches /* Alive pdf prints at 72 pixels per inch from the resolution we know that resInches now stores the number of inches on the ground for each pixel So multiplying resInches by 72 will give us the number of inches on the ground one inch on the page will repesent thus giving us the proper scale */ return Math.round(72 * resInches); }
This doesn't answer your question, but ... if possible, you might want to use a scale bar instead of a 1:scale. This way it would be less confusing and would be correct on both your computer screen, a projected big screen and printed out.
private function calcScale():Number { var lodsInfo:LOD = map.lods[map.level] as LOD; //get resolution ie: 1 pixel = x map units (m) where x is the resolution var resInches:Number = lodsInfo.resolution * 39.3701; //convert res from m to inches /* Alive pdf prints at 72 pixels per inch from the resolution we know that resInches now stores the number of inches on the ground for each pixel So multiplying resInches by 72 will give us the number of inches on the ground one inch on the page will repesent thus giving us the proper scale */ return Math.round(72 * resInches); }