How can i remove the basemap layer without it intefering with other features (i'm useing basemap gallery if that makes it any easier). Maybe the sollution is to set it to null layer? Tried already but the following code doesnt work
dojo.forEach(basemapGallery.basemaps, function (basemap) { menu.addChild(new dijit.MenuItem( { label: basemap.title, iconClass: basemap.thumbnailUrl, onChange: function () { }, onClick: function (evt) { if (basemap.id == 'blank') basemapGallery.select(null); else basemapGallery.select(basemap.id); } })); });
I struggled with this same problem. Eventually, I ended up creating an "empty" cached service on our server. I say "empty" because I didn't actually create any of the tiles. Instead, I followed the instructions at the link below to include a single blank tile that gets displayed at all times:
I struggled with this same problem. Eventually, I ended up creating an "empty" cached service on our server. I say "empty" because I didn't actually create any of the tiles. Instead, I followed the instructions at the link below to include a single blank tile that gets displayed at all times: