I am using ArcGIS Flex API to write some web map application and got some tricky problems with the spatial reference.Here is the code:vMap = new com.esri.ags.Map(); initialExtent = new Extent(-98,33,-97,34, new SpatialReference(4326)); //initialExtent = new Extent(-11131949.0793274, 3456807.64460123, -10241393.1529812 , 4347363.57094742, new SpatialReference(4326)); vMap.extent = initialExtent; vLayer = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); vMap.addLayer(vLayer);
I am using the latitude and longitude, so I choose the 4326 spatial reference. But the map keep using the default 102100.Basically, the initialExtent = new Extent(-98,33,-97,34, new SpatialReference(4326));
only show the map around (0,0) because the lat/lon is too small in UTM coordinate system.initialExtent = new Extent(-11131949.0793274, 3456807.64460123, -10241393.1529812 , 4347363.57094742, new SpatialReference(4326));
will still gives me the right extent.Any help will be greatly appreciated.