5

I am trying to create a Web App, using the ArcGIS Online feature of downloading the javascript code, with the map id being used for connecting to the ArcGIS Online. I was able to do that successfully but the only issue is that I do not want a basemap. I only want the overlaying shapefile to be visible. How can I do that? Or is it not possible?

ArcGIS Online does provides an option, where I can make my shapefile as the basemap and then the features of popups cannot be used on it. Any ideas how I can work it out?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 20, 2012 at 18:53
1
  • 3
    the answer is cross-posted on the Esri forum - call basemap.hide Commented Sep 21, 2012 at 2:54

1 Answer 1

3

Without looking at your code and knowing what end-result you're actually going for, I think the easiest solution is to just edit your JavaScript code and omit adding the basemap into your map object. Most basemap calls look like one of these two lines:

map.addLayer(basemap);
map.addLayers([basemap, myData, otherLayers, mapIsGettingCrowded]);

(Note the plural when adding more than one map)

Removing/editing whichever line is relevant should remove the basemap from your Web App.

answered Aug 21, 2012 at 22:55
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.