AnsweredAssumed Answered

ImageServer services as basemaps in JSAPI

Question asked by sedick01 on Feb 24, 2015
Latest reply on Feb 25, 2015 by sedick01

I'm defining two basemaps in version 3.12 of the Javascript API as follows:

 

 esriBasemaps.kytcbase = {
                   baseMapLayers: [{ url: "http://maps.kytc.ky.gov/arcgis/rest/services/BaseMap/KYTCBaseMap/MapServer" }], title: "Basemap",
                   thumbnailUrl: "http://maps.kytc.ky.gov/arcgis/rest/services/BaseMap/KYTCBaseMap/mapserver/info/thumbnail"
               };
               esriBasemaps.imagery = {
                   baseMapLayers: [{ url: "http://kyraster.ky.gov/arcgis/rest/services/ImageServices/Ky_NAIP_2012_1M/ImageServer" }], title: "Imagery",
                   thumbnailUrl: "http://kyraster.ky.gov/arcgis/rest/services/ImageServices/Ky_NAIP_2012_1M/ImageServer/info/thumbnail"
               };

Both of these services have the same spatial reference. What I'm trying to do is use these in the BasemapToggle dijit. The tiled map service displays correctly but the ImageServer service doesn't draw. The error that gets returned is:

 

TypeError: Unable to get property '_getInfo' of undefined or null referenceTypeError: Unable to get property '_getInfo' of undefined or null reference

My question is:

  • Are ImageServer services allowed to be used as basemaps?

Outcomes