0

I just started creating a very simple mobile GIS app using ArcGIS JavaScript API, and I am experiencing a very peculiar issue.

When the app loads, the basemap is white (not visible) until you use the zoom control. After that, the app works except for the BasemapToggle control. I was using another similar post as a template to add a custom basemap to the BasemapToggle control seen here:

How to Use Custom Basemaps with BasemapToggle widget?

There are no errors reporting, so I am not sure what is causing both the fault basemap load and the BasemapToggle issue.

Has anyone else experienced this and have information on resolving the issue?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Dec 17, 2013 at 17:13

1 Answer 1

3

Change the value you're passing for basemap in the BasemapToggle constructor from:

basemap: 'Local',

to:

basemap: 'local'

(i.e. a lowercase 'L'). Then it'll render right off the bat. I think the value has to match exactly with the thing you put into esriConfig.defaults.map.basemaps.

answered Dec 17, 2013 at 17:56
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.