AnsweredAssumed Answered

map show no basemap just features

Question asked by detroit on Dec 10, 2012
Latest reply on Dec 11, 2012 by detroit
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);
          }
      }));
        });


Regards,
Matej

Outcomes