<?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 Change spatial reference of map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538485#M50181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In JSAPI v3.x it's not possible to change spatial reference of a map which has been already initialized (as a workaround we used to create a new map, set extent with the required spatial reference and copy all layers from the original map to the new one).&lt;/P&gt;&lt;P&gt;We do this because we need to support switching basemaps with different coordinate systems in the same app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change spatial reference of a map in JSAPI v4.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 06:49:54 GMT</pubDate>
    <dc:creator>MatejVrtich</dc:creator>
    <dc:date>2015-07-22T06:49:54Z</dc:date>
    <item>
      <title>Change spatial reference of map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538485#M50181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In JSAPI v3.x it's not possible to change spatial reference of a map which has been already initialized (as a workaround we used to create a new map, set extent with the required spatial reference and copy all layers from the original map to the new one).&lt;/P&gt;&lt;P&gt;We do this because we need to support switching basemaps with different coordinate systems in the same app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change spatial reference of a map in JSAPI v4.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 06:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538485#M50181</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2015-07-22T06:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change spatial reference of map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538486#M50182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. We plan on supporting the ability to switch the Map's spatial reference in 4.0. It's not there yet, but it will be explored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now, it looks like this will only be possible with Maps that have NO basemap. The SpatialReference of the map and all of the dynamic layers and FeatureLayers would reproject after changing the SpatialReference directly on the Map.spatialReference property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1437770885757681 jive_text_macro" data-renderedposition="113_8_912_16" jivemacro_uid="_1437770885757681" modifiedtitle="true"&gt;&lt;P&gt;map.spatialReference = new SpatialReference( {wkid: 4326} );&amp;nbsp; //or some other spatial reference object&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538486#M50182</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-07-24T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change spatial reference of map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538487#M50183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristian,&lt;/P&gt;&lt;P&gt;Thank you for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, if I switch basemap with different spatial reference, the map should change it's spatial reference (and tiling scheme) according the new basemap. Every layer in the map should be reprojected if supported by the layer itself (I understand the on-the-fly reprojection is no supported by tiled services).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no basemap in the map, it should be possible to change spatial reference of map directly on the map itself (setting the map.spatialReference property).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-spatial-reference-of-map/m-p/538487#M50183</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2015-07-27T06:53:04Z</dc:date>
    </item>
  </channel>
</rss>

