<?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: Lock/Constrain Extents Flexviewer 3.1 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417456#M11896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you have any trouble with Line 41?&amp;nbsp; const newScale:Number = ProjUtils.convertExtentToScale(value, width, height, Units.esri_internal::UNITS_METERS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had similar issues with line 41 and line 69 "Access of possibly undefined property esri_internal through a reference with static type Class"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2013 15:30:53 GMT</pubDate>
    <dc:creator>MarkHanway1</dc:creator>
    <dc:date>2013-01-16T15:30:53Z</dc:date>
    <item>
      <title>Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417453#M11893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the latest 3.1 viewer and looking to secure the extent.&amp;nbsp;&amp;nbsp; Disabling the left mouse function would be nice but I would like to constrain the extent similar to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://thunderhead.esri.com/readonlyurl/ExtentApp.html" rel="nofollow" target="_blank"&gt;http://thunderhead.esri.com/readonlyurl/ExtentApp.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the full blogpost:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html" rel="nofollow" target="_blank"&gt;http://thunderheadxpler.blogspot.com/2009/01/constraining-map-extent.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know Robert Scheitlin expanded the example from Mansour Raad for an early version of the viewer in this post &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=295234&amp;amp;mc=0" rel="nofollow" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=295234&amp;amp;mc=0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are 2 files: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ConstrainedMap.as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MapManager.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't been successful getting this updated for 3.1 and was wondering if anyone has migrated the action script an updated changes to the mapmanager.mxml for the later versions of the viewer?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 13:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417453#M11893</guid>
      <dc:creator>MarkHanway1</dc:creator>
      <dc:date>2013-01-15T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417454#M11894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is a more recent version for Flex Viewer 2.2 it may be easier to port over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/20799-Restrict-View-Port-Bounds-in-Flex-Viewer-2.x?p=67595&amp;amp;viewfull=1#post67595"&gt;http://forums.arcgis.com/threads/20799-Restrict-View-Port-Bounds-in-Flex-Viewer-2.x?p=67595&amp;amp;viewfull=1#post67595&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will see if I can find the time to do it for 3.1, but no promises.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 18:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417454#M11894</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-01-15T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417455#M11895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to incorporate this, and it seems that most ports fine.&amp;nbsp; However, it does not like the&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;m_initialScale = ProjUtils.convertExtentToScale(m_cExtent, width, height, Units.esri_internal::esriMeters);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it gives me the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-1137: Incorrect number of arguments. Expected no more than 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-1119: Access of possibly undefined property esriMeters through a reference with static type Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-1119: Access of possibly undefined property esriMeters through a reference with static type Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-height&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looked through the api and don't see the that class in utils anymore, yet the autocomplete has it, but only wants 3 args.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I'll keep looking try to figure it out, but thought I'd let you know that most of it comes across.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417455#M11895</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417456#M11896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you have any trouble with Line 41?&amp;nbsp; const newScale:Number = ProjUtils.convertExtentToScale(value, width, height, Units.esri_internal::UNITS_METERS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had similar issues with line 41 and line 69 "Access of possibly undefined property esri_internal through a reference with static type Class"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 15:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417456#M11896</guid>
      <dc:creator>MarkHanway1</dc:creator>
      <dc:date>2013-01-16T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417457#M11897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, both of them.&amp;nbsp; Still can't figure out how to convert an extent to scale now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 15:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417457#M11897</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-01-16T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417458#M11898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone gotten the zoom in/out functionality to work with Mansour's/Robert's constraint code? Panning seems fine (I'm using Viewer 3.2), but whenever I zoom in or out, the map goes to it's full extent and "shakes" up and down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the only solution to prevent zooming?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 15:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417458#M11898</guid>
      <dc:creator>MatthewGoulet1</dc:creator>
      <dc:date>2013-03-29T15:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Constrain Extents Flexviewer 3.1</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417459#M11899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just downloaded the code provided at the site :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=293364"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=293364&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do not have a mapmanager.xml anywhere when I open the application folder.&amp;nbsp; Where do I put the MapManager.mxml or constrainedmap.as?&amp;nbsp; I'm using flex viewer 3.2 and not flash builder.&amp;nbsp; What do I do with this to get my map to constrain and "bounce" back in my application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/lock-constrain-extents-flexviewer-3-1/m-p/417459#M11899</guid>
      <dc:creator>NancyGnanicys</dc:creator>
      <dc:date>2013-04-25T13:32:34Z</dc:date>
    </item>
  </channel>
</rss>

