When I use my own Basemap (wkid 2881) I get the following error when opening my app.
When I switch to an ESRI basemap, I don't get an error.
Is this a bug?
TIm, if you are asking whether using your own Basemap with a different wkid than web Mercator aux is a bug....I would say no. I use our basemaps with (AK Albers) with WAB and have had no issues. I do have our Basemap service used to create the Basemap thru AGOL online, however, so I can use the maps mapID for WAB. Then I use Robert Scheitlin, GISP 's eBasemap widget to add the rest of my basemaps services (also Ak Albers). So, unless there is something specific about wkid 2881, I would check the typical missing or misplaced comma, or brackets. Those can get spit out weird results, with or without an error message, in my experience anyway.
Thanks for the reply Rebecca.
So you use an ESRI basemap and then add your own basemap to the Basemap widget?
There shouldn't be any code error in my application, since when I use an AGOL basemap, I don't get an error.
No, I use my Basemap as the first Basemap, not an Esri version. The application will look at the first Basemap to determine the spatial reference it will us. So I created my own Basemap, using a service from our local ArcGIS Server, that was already in Albers. i set that as the Basemap, and don't add any other layers to that map (ie, not operational layer). Then in WAB I select that as my map to use.
Thanks Rebecca, that makes sense.
So it seems having your basemap in the same SR as the ESRI basemaps would be a good practice?
i think the answer to that is "yes" if you want everything to work smoothly right out of the box, as designed, but that isn't always a solution. We have reasons to use the basemaps we do, and though the esri basemaps would make life easier, I would rather do a little (or a lot, considering the size of Alaska) then just use the default. Web Mercator Auxiloary just doesn't do it for me.