<?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: Off Center Zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305661#M28059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to off center my polygon features the same way.&amp;nbsp; Currently I am using :&amp;nbsp; map.setExtent(polygonFeatureLayer.geometry.getExtent().expand(1.1));&amp;nbsp; Would I simply do the same for the x coordinate for the polygon and recalculate the extent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 19:02:02 GMT</pubDate>
    <dc:creator>WesAskew</dc:creator>
    <dc:date>2014-12-19T19:02:02Z</dc:date>
    <item>
      <title>Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305656#M28054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to determine the best way to off center a zoom based on browser window size.&amp;nbsp; I have a div container nested within my map div on the right side which takes up 20% of the screen.&amp;nbsp; I would like to off center the map.centerAt() function 20% to the left to compensate for this taken space.&amp;nbsp; Does anyone have an idea on the best way of going about this?&amp;nbsp; Any suggestions are greatly appreciated.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305656#M28054</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-12-19T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305657#M28055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert the point you want to center on to a screen point, this will give you the coordinates in pixel space. Then substract/add 0.2*map.width from the X value and convert the point back to map units and use that to center on. Makes sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 16:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305657#M28055</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-19T16:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305658#M28056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also skip the unit conversion and use 0.2*map.extent.getWidth()...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 17:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305658#M28056</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-19T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305659#M28057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, worked perfectly for my point features.&amp;nbsp; Would a similar method be used for polygons? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 17:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305659#M28057</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-12-19T17:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305660#M28058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to do what? map.centerAt only works with points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 17:32:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305660#M28058</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-19T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305661#M28059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to off center my polygon features the same way.&amp;nbsp; Currently I am using :&amp;nbsp; map.setExtent(polygonFeatureLayer.geometry.getExtent().expand(1.1));&amp;nbsp; Would I simply do the same for the x coordinate for the polygon and recalculate the extent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305661#M28059</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2014-12-19T19:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Off Center Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305662#M28060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you would do it the same way; loop over all vertices in the polygon and offset the X.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/off-center-zoom/m-p/305662#M28060</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2014-12-19T19:04:25Z</dc:date>
    </item>
  </channel>
</rss>

