Select to view content in your preferred language

ArcGIS Javascript - How do I change other coordinate map

1191
3
08-31-2016 02:51 AM
ParkSeungHyun
Deactivated User

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?

Tags (2)
0 Kudos
3 Replies
FC_Basson
MVP Alum

Have you tried just changing the map's spatial reference like:

map.spatialReference = new esri.SpatialReference({ wkid: 4326, latestWkid: 4326 })
ParkSeungHyun
Deactivated User

Not even so.... how to change other coordinate basemap ?? 

0 Kudos
PanagiotisPapadopoulos
Esri Regular Contributor

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 

0 Kudos