<?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 converting between projections for zooming to layer extents in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189945#M17561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it exists, I'm using a batch of ImageServer and MapServer data in California state plane, while my view is using web mercator. I'd like to use some 'zoom to extent' actions.&amp;nbsp; Simply updating the view extent with the layer extents sends me off to odd parts of the world.&amp;nbsp; So apparently any reproject on the fly works for the services, but not when transferring extents - the spatialReference property seems to have no effect.&amp;nbsp; Tried both:&lt;/P&gt;&lt;P&gt;view.extent = featureLayer.fullExtent;&lt;/P&gt;&lt;P&gt;view.goTo(featureLayer.fullExtent);&lt;/P&gt;&lt;P&gt;So, I'm looking into projecting the xmin... values from my state plane layers into web mercator and using them to set the view extent.&amp;nbsp; I've constructed a point with state plane for the spatialReference, and checked it with&lt;/P&gt;&lt;P&gt;webMercatorUtils.canProject(myPoint, map);&lt;/P&gt;&lt;P&gt;but that returns false.&amp;nbsp; So I'm presuming that the arcgis api just can't project from state plane to web mercator?&amp;nbsp; Is there a list of projections that are functional?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, do I just need to give up on going in this direction and get all my ImageServer and MapServer data projected to web mercator to start with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 18:07:49 GMT</pubDate>
    <dc:creator>DataSteward</dc:creator>
    <dc:date>2017-05-24T18:07:49Z</dc:date>
    <item>
      <title>converting between projections for zooming to layer extents</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189945#M17561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it exists, I'm using a batch of ImageServer and MapServer data in California state plane, while my view is using web mercator. I'd like to use some 'zoom to extent' actions.&amp;nbsp; Simply updating the view extent with the layer extents sends me off to odd parts of the world.&amp;nbsp; So apparently any reproject on the fly works for the services, but not when transferring extents - the spatialReference property seems to have no effect.&amp;nbsp; Tried both:&lt;/P&gt;&lt;P&gt;view.extent = featureLayer.fullExtent;&lt;/P&gt;&lt;P&gt;view.goTo(featureLayer.fullExtent);&lt;/P&gt;&lt;P&gt;So, I'm looking into projecting the xmin... values from my state plane layers into web mercator and using them to set the view extent.&amp;nbsp; I've constructed a point with state plane for the spatialReference, and checked it with&lt;/P&gt;&lt;P&gt;webMercatorUtils.canProject(myPoint, map);&lt;/P&gt;&lt;P&gt;but that returns false.&amp;nbsp; So I'm presuming that the arcgis api just can't project from state plane to web mercator?&amp;nbsp; Is there a list of projections that are functional?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, do I just need to give up on going in this direction and get all my ImageServer and MapServer data projected to web mercator to start with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 18:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189945#M17561</guid>
      <dc:creator>DataSteward</dc:creator>
      <dc:date>2017-05-24T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: converting between projections for zooming to layer extents</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189946#M17562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to use the GeometeryService Project method:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#project" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#project"&gt;GeometryService | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and specify ProjectParameters:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-ProjectParameters.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-ProjectParameters.html"&gt;ProjectParameters | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;webMercatorUtils can only project between geographic and webmercator&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 18:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189946#M17562</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-24T18:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: converting between projections for zooming to layer extents</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189947#M17563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks! I'll just get everything changed over to WebMerc.&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 03:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/converting-between-projections-for-zooming-to/m-p/189947#M17563</guid>
      <dc:creator>DataSteward</dc:creator>
      <dc:date>2017-05-26T03:07:03Z</dc:date>
    </item>
  </channel>
</rss>

