Select to view content in your preferred language

Centering the scale on a map

608
0
05-15-2012 11:02 AM
by Anonymous User
Not applicable
Does anyone know how to center the scale that is on the flex viewer app?  I have added a scalebar selector in my stylesheet, the code is below:


esri|ScaleBar
{
 right: 10;
 bottom: 20;
 left: 800;
 top: NaN;
 
}



This basically pushes the scale 800 pixels to the left.  What I want to do is print the scale in the direct center of the map.  Is there a way that I can get the width of the page and use it in the stylesheet to compute the center of the map??? 

Thanks,
Tags (2)
0 Kudos
0 Replies