Select to view content in your preferred language

Fade between basemaps

647
5
09-14-2010 11:15 AM
MichaelHoff
Deactivated User
I have been able to successfully setup my site with the ability to fade between basemaps by reading through: http://forums.esri.com/Thread.asp?c=158&f=2421&t=286723. Many thanks to all who contributed!!! My question is...how can I get rid of the little box that displays the snap interval values?
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

You can disable data tips by setting the showDataTip property to false.
0 Kudos
MichaelHoff
Deactivated User
Robert,

Thank you so much. Your contribution to this forum is invaluable!!
0 Kudos
MattiasEkström
Frequent Contributor
I read through the thread Michael mentioned too, and was abel to add the fade between basemaps tool to my SFV 1.3 site. I've made a few changes and it works fine.
But there is still one thing annoying me that I haven't solved yet.
When you change the basemap from the map-menu the slider doesn't move. I looked att the function that was changed in the mapmanager (basemapMenuClicked), I guess that's were I want to change the value of the slider. But the slider is added in index.mxml and I don't know how to access it from the function in mapmanger to change it's value.

Another solution would be to just remove the basemaps from the mapMenu, I don't really need them there anyway since I've got the fader tool to control the basemaps. I tried to accomplish this in the config.xml without success. Tried remove them or even move them to another menu, but they still appear in the mapMenu.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mattias,

   Here is some code I used to change the fader in the index from the MapManager. This will not be just copy and paste code for you but you cam see how it is done from this.

//basemap menu clicked
      private function basemapMenuClicked(event:AppEvent):void
      {
       var id:String = event.data as String;
       
       var configBasemaps:Array = configData.configBasemaps;
       var sellabel:String  = configBasemaps[id].label;
       for (var i:Number = 0; i < configBasemaps.length; i++)
       { 
        var label:String  = configBasemaps.label;
        var lyr:Layer = map.getLayer(label);
        if (lyr != null)
        {
         if (configBasemaps.id == id)
         {
          lyr.visible = true;
          if(lyr.id == "Photography"){
           this.parentApplication.fader.value = 0;
           lyr.alpha = 1;
          }else if(lyr.id == "Street Map"){
           this.parentApplication.fader.value = 1;
           lyr.alpha = 1;
          } 
         }
         else
         {
          if(sellabel == "Photography" && lyr.id == "Vector"){
           lyr.visible = true;
           lyr.alpha = 1;
           map.reorderLayer(lyr.id,1000);
          } else {
           lyr.visible = false;
          }
         }
        }
       }
      }
0 Kudos
MattiasEkström
Frequent Contributor
Thank you Robert!

It was the this.parentApplication part before the slider id I needed.
0 Kudos