<?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 InfoBox and Map extent in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infobox-and-map-extent/m-p/235113#M5535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to restrict the custom info popup to always lie within the current map extent. At the moment depending upon where the user clicks, the pop up is generated and displayed either left or right to the click. However if the user clicks near the bottom of the map, half of the pop up lies outside the current display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to move the custom info pop up box in current stage, if some part of it lies outside the current view. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried a few things but have been having problems because of differences in the map coordinates and screen coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone got any ideas??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 14:35:52 GMT</pubDate>
    <dc:creator>FaizanTayyab</dc:creator>
    <dc:date>2011-02-28T14:35:52Z</dc:date>
    <item>
      <title>InfoBox and Map extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infobox-and-map-extent/m-p/235113#M5535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to restrict the custom info popup to always lie within the current map extent. At the moment depending upon where the user clicks, the pop up is generated and displayed either left or right to the click. However if the user clicks near the bottom of the map, half of the pop up lies outside the current display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to move the custom info pop up box in current stage, if some part of it lies outside the current view. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried a few things but have been having problems because of differences in the map coordinates and screen coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone got any ideas??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 14:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infobox-and-map-extent/m-p/235113#M5535</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2011-02-28T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: InfoBox and Map extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/infobox-and-map-extent/m-p/235114#M5536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would not try and move the InfoWindow, but try and pan the map up instead. This should move the InfoWindow too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The map component has some decent methods that might help detect the screen coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the below map methods to help with your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;toMap&lt;/STRONG&gt;&lt;SPAN&gt;(screenPoint:Point):MapPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Converts a screen point to a map point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;toMapFromStage&lt;/STRONG&gt;&lt;SPAN&gt;(stageX:Number, stageY:Number):MapPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Converts the global stage coordinates to a map point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;toScreen&lt;/STRONG&gt;&lt;SPAN&gt;(mapPoint:MapPoint):Point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Converts a map point to a screen point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map Component URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 22:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/infobox-and-map-extent/m-p/235114#M5536</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2011-02-28T22:58:48Z</dc:date>
    </item>
  </channel>
</rss>

