<?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 with different  projection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1286787#M81080</link>
    <description>&lt;P&gt;TileLayer needs to be reprojected on the server. If the server does not support the projection of the mapview then nothing will be displayed.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 15:24:01 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-05-08T15:24:01Z</dc:date>
    <item>
      <title>Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285618#M81037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to add basemap with different projections to my map while map load.&lt;/P&gt;&lt;P&gt;baseLayer = new TileLayer({ url: baseMapService.MapServiceURL });&lt;/P&gt;&lt;P&gt;var myBasemap = new Basemap({&lt;/P&gt;&lt;P&gt;baseLayers: [baseLayer ],&lt;/P&gt;&lt;P&gt;thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail',&lt;/P&gt;&lt;P&gt;title: 'My custom basemap', id: 'my_custom_basemap' });&lt;/P&gt;&lt;P&gt;map.basemap = myBasemap&lt;/P&gt;&lt;P&gt;The above code works fine when the base map projection is similar to the projection of base map gallery. But does not work with different projection.&lt;/P&gt;&lt;P&gt;Any idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285618#M81037</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-05-04T13:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285710#M81039</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure what issue you are running into. Can you please explain the problem bit more in detail? If you are using 4.23 and later, you can change spatialReference of the MapView at runtime. Here are the details how it works:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/4.23/#basemaps-with-different-spatial-references" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/4.23/#basemaps-with-different-spatial-references&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285710#M81039</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-04T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285717#M81041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the response. I am trying to add a custom basemap to the map on map load. Below is the code I am using for same.&lt;/P&gt;&lt;P&gt;baseLayer = new TileLayer({ url: baseMapService.MapServiceURL });&lt;/P&gt;&lt;P&gt;var myBasemap = new Basemap({&lt;/P&gt;&lt;P&gt;baseLayers: [baseLayer ],&lt;/P&gt;&lt;P&gt;thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail',&lt;/P&gt;&lt;P&gt;title: 'My custom basemap', id: 'my_custom_basemap' });&lt;/P&gt;&lt;P&gt;map.basemap = myBasemap&lt;/P&gt;&lt;P&gt;But on map load the basemap is not loading.Its coming without a basemap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285717#M81041</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-05-04T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285791#M81046</link>
      <description>&lt;P&gt;It is hard to suggest things to try without a repro case. What happens if you set the basemap in the map constructor?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is blank perhaps because your TileLayer cannot be reprojected to the spatialReference of the view.spatialReference. The server must be able to reproject the TileLayer to match the spatialReference of the view.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1285791#M81046</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-04T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1286674#M81077</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;Exactly. I am getting a blank basemap because the basemap is not getting reprojected&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 12:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1286674#M81077</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-05-08T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1286787#M81080</link>
      <description>&lt;P&gt;TileLayer needs to be reprojected on the server. If the server does not support the projection of the mapview then nothing will be displayed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 15:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1286787#M81080</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-08T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Basemap with different  projection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1289169#M81158</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;I just managed to solve it by changing the mapview projection to basemap projection.&lt;/P&gt;&lt;P&gt;if(view.spatialrefrence != basemap.spatialrefrence)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;view.spatialrefrence = basemap.spatialrefrence;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 15:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-with-different-projection/m-p/1289169#M81158</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-05-15T15:07:24Z</dc:date>
    </item>
  </channel>
</rss>

