Select to view content in your preferred language

Base Maps aren't displaying

626
2
09-24-2010 12:34 PM
DavidLozzi
Emerging Contributor
Howdy,

I have the web part downloaded onto my WSS3 server. I am trying to use 2 base maps, one for street one for imagery. I have them both loaded into the base map list. When I load the web part, i see that the street loads then the imagery loads right over it. The layer selector in the top right shows both Street and Image, and if I select either nothing changes. Can this be setup so the user can pick between the two?

Thanks,
David
0 Kudos
2 Replies
RandallSounhein
Occasional Contributor
Hey Guy:

You might want to look at this code.   Here are two base maps that are drawn via two buttons. WHile I am not sure if your using any buttons you can see that the first base map is set to a value = 0 and the second base maps is set to value = 1.   The "0" value indicates that this map will draw first as the default.  See eaxmple below:

   <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)"
   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
            visible="{bb.selectedIndex == 0}"/>
      <esri:ArcGISTiledMapServiceLayer show="layerShowHandler(event)"
            url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"
            visible="{bb.selectedIndex == 1}"/>

Hope this helps,

Randy
0 Kudos
DavidLozzi
Emerging Contributor
Thanks sounhein, but I'm using the sharepoint webpart provided by ESRI, I am not coding anything.
0 Kudos