<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Centering the scale on a map in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/centering-the-scale-on-a-map/m-p/214308#M6533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to center the scale that is on the flex viewer app?&amp;nbsp; I have added a scalebar selector in my stylesheet, the code is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

esri|ScaleBar
{
 right: 10;
 bottom: 20;
 left: 800;
 top: NaN;
 
}

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This basically pushes the scale 800 pixels to the left.&amp;nbsp; What I want to do is print the scale in the direct center of the map.&amp;nbsp; 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???&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 18:02:38 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-05-15T18:02:38Z</dc:date>
    <item>
      <title>Centering the scale on a map</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/centering-the-scale-on-a-map/m-p/214308#M6533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to center the scale that is on the flex viewer app?&amp;nbsp; I have added a scalebar selector in my stylesheet, the code is below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

esri|ScaleBar
{
 right: 10;
 bottom: 20;
 left: 800;
 top: NaN;
 
}

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This basically pushes the scale 800 pixels to the left.&amp;nbsp; What I want to do is print the scale in the direct center of the map.&amp;nbsp; 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???&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 18:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/centering-the-scale-on-a-map/m-p/214308#M6533</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-05-15T18:02:38Z</dc:date>
    </item>
  </channel>
</rss>

