Hi guys,
can some one tell me how to create a config file so that i could use it across the application.
In JavaScript i would create a file called config and
and then call mapconfig.generalSetting to get the general setting values in my application.Code:ar mapserviceUrl1 = "http://204.94.80.163/ArcGIS/rest/services/";
var mapserviceUrl = "http://map1-2.lan.511.org/ArcGIS/rest/services/";
//var localImageDir = mapImageDirectory;
function mapConfig() { };
var mapconfig = new mapConfig();
//mapConfig.prototype.LocalImageDir = localImageDir;
mapConfig.prototype.generalSettings = {
defaultZoomLevel: 2,
defaultQueryTolerancePixels:2
}
mapConfig.prototype.generalSettings = {
defaultZoomLevel: 2,
defaultQueryTolerancePixels: 2
};
mapConfig.prototype.spatialReference = {
parking: new esri.SpatialReference({ wkid: 4269 })
};
How can i perform the same in sencha touch 2
Regards,
Paw
