i` trying to the arcgis javascript basemap change.
two basemap is ohter coordinate map.
I tested as follows:
first map.destroy();
and new map object created.
It was changed to a different map.
But they did not work on an existing widget created.
How can you change to a different map coordinate system and connect the widgets again?
I made this test in the past but some of the other widgets (measure e.t.c) facing problem after map destroy/creation.
May you can try to change the webmap creating the application, see this sample Fade effect using ArcGIS.com web maps | ArcGIS API for JavaScript 3.17
Not even so.... how to change other coordinate basemap ??
Have you tried just changing the map's spatial reference like:
map<SPAN class="punctuation token">.</SPAN>spatialReference <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">esri<SPAN class="punctuation token">.</SPAN>SpatialReference</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN> wkid<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">4326</SPAN><SPAN class="punctuation token">,</SPAN> latestWkid<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">4326</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.