AnsweredAssumed Answered

Basemap errors when changing map spatial reference

Question asked by steveburdette on May 13, 2016
Latest reply on May 16, 2016 by steveburdette


I have a web application that is referencing several ArcGIS web services that all use spatial reference 26916.  When I set a custom extent in my map to force the map spatial reference to 26916 I am not able to use the streets basemap that I'm able to use with the default map spatial reference (3857).  The following instantiates the map correctly (with just a white background but all of the layers working correctly):

 

        var customExtentAndSpatialReference = new Extent({ "xmin": 360685, "ymin": 3344235, "xmax": 693879, "ymax": 3874530, "spatialReference": { "wkid": 26916 } });

        map = new Map("divMap", { "extent": customExtentAndSpatialReference });

 

but when I set the basemap to streets, like this:

 

        var customExtentAndSpatialReference = new Extent({ "xmin": 360685, "ymin": 3344235, "xmax": 693879, "ymax": 3874530, "spatialReference": { "wkid": 26916 } });

        map = new Map("divMap", { "extent": customExtentAndSpatialReference, "basemap": "streets" });

 

The map spatial reference is set to 3857.  When I add one of the feature layers (26916 srid) first and then try to use map.setBasemap("streets") to set the basemap it does not successfully set the basemap. 

 

Any suggestions or documentation on good basemaps to use with spatial reference 26916?

Outcomes