Select to view content in your preferred language

Enhanced Map Switcher Widget

6766
37
10-27-2011 12:38 PM
JeffreyUtter
Deactivated User
Robert........
I really like this widget, but I have 2 issues with it.
First, the widget causes a white line across the map. It's not there if I remove the widget.
Second, the labeling dropdowns from the top toolbar widgets are covered up from the basemap/Enhanced Map Switcher Widget. Again, if I remove the Enhanced Map Switcher Widget, the dropdown labels can be seen over the top of the basemaps.
Please advise.
Jeff
Tags (2)
0 Kudos
37 Replies
RobertScheitlin__GISP
MVP Emeritus
Jeffrey,

   Both issues have to do with how and where you added it in the main config.xml. Post you config.xml.
0 Kudos
JeffreyUtter
Deactivated User
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget bottom="35" right="5" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="15" top="55" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
    <widget right="15" top="55"    config="widgets/eMapSwitcher/MapSwitcherWidget.xml" url="widgets/eMapSwitcher/MapSwitcherWidget.swf"/>
   
    <map wraparound180="true" initialextent="-20113000 8005000 -13851000 11620000" fullextent="-20000000 -20000000 20000000 20000000" top="80">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
            <layer label="USA Topo" type="tiled" visible="false"
           url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" />
     <layer label="Shaded Relief" type="tiled" visible="false"
           url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer" />
     <layer label="Ocean Bathymetry" type="tiled" visible="false" 
           url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" />
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeffery,

   You have the original MapSwitcher and the eMapSwitcher both in your config... You need to comment out or delete the original one and then make sure you have the eMapSwitcherWidget above the HeaderControllerWidget.
0 Kudos
JeffreyUtter
Deactivated User
I got it, moving it to the top works.
But perhaps getting the base map layer to move a bit lower or top tools to the left aittle might work even better.
0 Kudos
JeffreyUtter
Deactivated User
Hmm, the white blank space continues, here is the modified code.
<splashpage label="ArcGIS Viewer for Flex" config="widgets/Splash/SplashWidget.xml" url="widgets/Splash/SplashWidget.swf"/>
    <widget right="15" top="55"    config="widgets/eMapSwitcher/MapSwitcherWidget.xml" url="widgets/eMapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget bottom="35" right="5" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
   
   
    <map wraparound180="true" initialextent="-20113000 8005000 -13851000 11620000" fullextent="-20000000 -20000000 20000000 20000000" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
            <layer label="USA Topo" type="tiled" visible="false"
           url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" />
     <layer label="Shaded Relief" type="tiled" visible="false"
           url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer" />
     <layer label="Ocean Bathymetry" type="tiled" visible="false" 
           url="http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer" />
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeffery,

   Easily done with:

<widget right="15" top="85"     config="widgets/eMapSwitcher/MapSwitcherWidget.xml"  url="widgets/eMapSwitcher/MapSwitcherWidget.swf"/>
0 Kudos
JeffreyUtter
Deactivated User
Ahh, had to clear the cache....funny me...
Thanks Robert
0 Kudos
JeffreyUtter
Deactivated User
Yes, much nicer, many thanks Robert
Jeffrey
0 Kudos
JoshThomas
Emerging Contributor
Robert,

Thank you for all of your widgets!  One question about the enhanced map switcher and Bing maps.  I see you have included an example config file in the zip file for this widget.  Is it possible to include the Bing basemaps in my application without compiling with Flash Builder?  This is a step we have not mastered yet.  We are currently using a compiled version of the FV2.5 that we have configured.

I know a Bing ID key is sometimes required.  Any help you can give me regarding this widget and Bing maps is greatly appreciated!

Josh
0 Kudos