Hi, i wanna change the basemap from default to another. The default's map (with url http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer) has wkid like 102100. My basemap has another wkid like 2180. What files do i have to edit to change that default basemap. I mean basemap which is in the 1st row, 1st column of the Basemap Gallery. What i tried:in ./src/config/advanced/basemaps.jschanged:{
uniqueID: 'top',
title: 'Topographic',
thumbnail: 'images/basemap/topographic.jpg',
services: [
{
url: 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer'
}
]
},
with:{
uniqueID: 'top',
title: 'Topographic',
thumbnail: 'images/basemap/topographic.jpg',
services: [
{
url: 'http://myserver.com/ArcGIS/rest/services/MyMap/MapServer'
}
]
},
my_wkid = 2180;
in ./src/config/advanced/application.js// Spatial Reference WKID
userConfig.spatialRef = my_wkid; // before was 102100
i changed also proxy to php proxy, because i'm using PHP.userConfig.proxyURL = './resources/proxy.php';
./js/embed.js has some variables about spatialRef, but firstly i wanna repair visibilty of changed map so i i'll skip it...in ./src/js/tasks.jsi changed this:
extent: startExtent,
to this:
extent: esri.geometry.geographicToWebMercator(startExtent),
and i made an edit here
if(!userConfig.spatialRef){
userConfig.spatialRef = my_wkid; // before was 102100
}
in ./src/js/cluster.js
"spatialReference": {
"wkid": my_wkid // before was 102100
}
But basemap is not changing at all. What am i doing wrong? Do I have to make changes in proxy.php?