<?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 Re: How do I zoom to a specific scale programmatically? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550836#M15862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yohan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use map.scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 04:51:32 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2013-12-18T04:51:32Z</dc:date>
    <item>
      <title>How do I zoom to a specific scale programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550835#M15861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the CoordinateWidget so that the current scale value of the map is displayed in the lower left corner of the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]29949[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I don't just need to see it, I want the user to be able to specify the scale too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is why I made the scale displayed in a TextInput.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought there would be a simple function in the API to let me zoom the map by passing a specific scale, but I didn't find one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has to be possible since the API Navigator component (com.esri.ags.components.Navigation) does it with the LODs specified in the config.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone already did something like this?&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, 17 Dec 2013 19:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550835#M15861</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2013-12-17T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom to a specific scale programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550836#M15862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yohan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use map.scale&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 04:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550836#M15862</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-12-18T04:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom to a specific scale programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550837#M15863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok this works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already use map.scale to get the value, didn't realize I could use this property to set the scale instead of going through a setter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use this solution though, I'll have to get it rid of the LODs in the config.xml, otherwise it just scales to the closest LOD instead of the entered value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't use tiles cache so we don't really need the LODs, but without them the Navigator widget will not have a zoom slider, which the users kind of like (instead of just the - and + zoom buttons).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wish I could have both, but will settle for no LOD if it's not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Anthony.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 11:44:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550837#M15863</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2013-12-18T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I zoom to a specific scale programmatically?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550838#M15864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yohan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use a combobox instead of a text box and have your scales hard coded, or read in from from the widget xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fire the map.scale on change of the combobox value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 14:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-do-i-zoom-to-a-specific-scale-programmatically/m-p/550838#M15864</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-12-18T14:04:05Z</dc:date>
    </item>
  </channel>
</rss>

