<?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: Basemap errors when changing map spatial reference in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604724#M56639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert...very helpful answer.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 13:31:00 GMT</pubDate>
    <dc:creator>SteveBurdette</dc:creator>
    <dc:date>2016-05-16T13:31:00Z</dc:date>
    <item>
      <title>Basemap errors when changing map spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604721#M56636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a web application that is referencing several ArcGIS web services that all use spatial reference 26916.&amp;nbsp; When I set a custom extent in my map to force the map spatial reference to 26916 I am not able to use the streets basemap that I'm able to use with the default map spatial reference (3857).&amp;nbsp; The following instantiates the map correctly (with just a white background but all of the layers working correctly):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var customExtentAndSpatialReference = new Extent({ "xmin": 360685, "ymin": 3344235, "xmax": 693879, "ymax": 3874530, "spatialReference": { "wkid": 26916 } });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("divMap", { "extent": customExtentAndSpatialReference });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I set the basemap to streets, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var customExtentAndSpatialReference = new Extent({ "xmin": 360685, "ymin": 3344235, "xmax": 693879, "ymax": 3874530, "spatialReference": { "wkid": 26916 } });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("divMap", { "extent": customExtentAndSpatialReference, "basemap": "streets" });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map spatial reference is set to 3857.&amp;nbsp; When I add one of the feature layers (26916 srid) first and then try to use map.setBasemap("streets") to set the basemap it does not successfully set the basemap.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions or documentation on good basemaps to use with spatial reference 26916?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 16:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604721#M56636</guid>
      <dc:creator>SteveBurdette</dc:creator>
      <dc:date>2016-05-13T16:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap errors when changing map spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604722#M56637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The issue is that the basemap used sets the maps WKID and LODs. The basemaps can not be re-projected as they are just tile/images of the map using the basemaps spatial reference. Re-projecting rasters is a very costly operation thus the basemap will not be re-projected. If your layers are in &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;26916 and they are not cached then they can re-projected on the fly by ArcGIS Server to match the basemaps WKID. This will have minor performance impact as your layers will have to re-projected when panning or zooming, but it is workable. The best solution is to create a child replicate of your data in WKID 102100 / 3857 and have a batch routine that runs nightly (assuming your data changes frequently). Esri has a whitepaper on this and I have used this method for years. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;A href="http://support.esri.com/EN/knowledgebase/techarticles/detail/34129" title="http://support.esri.com/EN/knowledgebase/techarticles/detail/34129"&gt;34129 - Create a replica where the child replica data is in a different coordinate system than the parent replica data&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604722#M56637</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-13T18:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap errors when changing map spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604723#M56638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;an another option is to create your basemap with &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;26916 WKID on your server. but because is difficult to find data for basemap it is better to follow Robert's suggestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;The behavior you describing happening because the first layer loaded on the map setting the application/ map spatial reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604723#M56638</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-05-13T19:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap errors when changing map spatial reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604724#M56639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert...very helpful answer.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 13:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-errors-when-changing-map-spatial-reference/m-p/604724#M56639</guid>
      <dc:creator>SteveBurdette</dc:creator>
      <dc:date>2016-05-16T13:31:00Z</dc:date>
    </item>
  </channel>
</rss>

