Hi, well I've been searching for answers... but I cannot find something that helps me, my problem is: I have to show a map with a custom extent and a different spatial reference, whenever I try to set this two, my map doesn't show ... here is my code... (it's from a sample I found I just add my map service)
....
var initialExtent = new esri.geometry.Extent({
"xmin": 650.24376718739,
"ymin": 1515.85251773739,
"xmax": 807.862232212611,
"ymax": 1673.47098276261,
"spatialReference": {
PROJCS["WGS_1984_UTM_Zone_15N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-93.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Kilometer",1000.0]]
}
});
map = new esri.Map("map", {
extent: initialExtent,
slider: false
});
dojo.connect(dijit.byId('map') , 'resize', function () {
//resize the map when browser size changes
resizeMap();
// });
dojo.connect(map, "onClick", mapClickHandler);
var topoMap = new esri.layers.ArcGISDynamicMapServiceLayer("http://servarcgisprd/ArcGIS/rest/services/MapaBase/MapServer", {
id: "topo",
visible: true
});
baseLayers.push(topoMap);
map.addLayers(baseLayers);
.....
As you can see my spatial reference it's very different from anything else, so It's ok I wrote it like that? Help !!Thanks, Alex