Select to view content in your preferred language

map show no basemap just features

570
2
Jump to solution
12-10-2012 02:59 AM
MatejSkerjanc
Regular Contributor
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
0 Kudos
1 Solution

Accepted Solutions
BillDaigle
Frequent Contributor
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:

http://support.esri.com/en/knowledgebase/techarticles/detail/36939

There may be a better solution, but this works me.

View solution in original post

0 Kudos
2 Replies
BillDaigle
Frequent Contributor
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:

http://support.esri.com/en/knowledgebase/techarticles/detail/36939

There may be a better solution, but this works me.
0 Kudos
MatejSkerjanc
Regular Contributor
thank you it is pretty much more logical then my current 20gb cache:)
0 Kudos