Select to view content in your preferred language

Basemap Switcher Not Showing Up Anymore - Flex Map 3.6

3016
12
01-23-2014 10:11 AM
LarryJahn
Frequent Contributor
I no longer see a basemap switcher button.  I double checked the settings, and everything is turned on as it should be.  However, when I view the published map, the basemap button is not there.  Any ideas?
Tags (2)
0 Kudos
12 Replies
AnthonyGiles
Honored Contributor
Larry,

Are you using the online basemaps or your own basemaps?

If you are wanting to use the online basemaps do you have the attribute addarcgisbasemaps="true" in your map tag in the main config file.

If you are using your own services do you have more than one specified as the switcher will only be shown if you have more than one basemap.

Regards

Anthony
0 Kudos
StephanieWebb
Deactivated User
I don't want to hijack someone else's thread, but I just came cross this same issue.  Worked fine in 3.4, moved to 3.6 and no Basemaps button.  I'm using my own basemap services and have several defined in the Basemaps tag.  I don't see any issues in the configs, have read and dont' see any new changes in 3.6 that should be relevant. 

The layer tags themselves seem to be fine - if i set any one of them to visible="true" they display okay. Just the button is missing.

Greatful for any ideas as this is my last piece to being able to complete the move to 3.6.
0 Kudos
StephanieWebb
Deactivated User
Maybe not the best longterm solution, but the next thing i tried worked.  I renamed the mapswitcherwidget.swf and replaced it with the one from 3.4. Works fine for now.  Will revisit if I come across more information on what kept it from working with 3.6 version of the swf.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
You both should post your main config.xml to help Anthony disagnose your issues.
0 Kudos
LarryJahn
Frequent Contributor
Anthony:

The "addarcgisbasemaps" variable is set to true.  I am meshing together esri basemaps with ArcGIS online maps using ArcGIS Viewer for Flex. 


Currently, an esri basemap appears, but I am unable to change the esri basemap in my flex map.

Attached is my config.xml file.

Thanks!
0 Kudos
AnthonyGiles
Honored Contributor
Larry,

I have just set up a quick viewer in my dropbox account, used your config file but just changed the webmap id to one of mine as yours are not publically available and the base map switcher works as expected, see:

https://dl.dropboxusercontent.com/u/25829160/Flexviewer/index.html?config=config1.xml

Maybe its to do with your webmap not being open to the public?

Regards

Anthony
0 Kudos
LarryJahn
Frequent Contributor
Anthony:

My webmap being open to the public was never an issue before.  Did something change in the latest version of ArcGIS Viewer for Flex that will cause this to be an issue?

As a previous poster mentioned, I never had any issues until I upgraded from 3.4 to 3.6.

Attached is a cropped image of a screen shot of my map.  You'll notice my basemap button is missing.

Larry
0 Kudos
AnthonyGiles
Honored Contributor
Larry,

I am not 100% sure if it is anything to do with your web map not being public, I am just trying to narrow down what the problem is. As you can see from my last post I have used your config file and just replaced the web map id to one of mine that is public just to check that it works ok. Does the link work for you?

Have you tried making your map public and testing again. Maybe there has been some bug introduced between versions.

Regards

Anthony
0 Kudos
LarryJahn
Frequent Contributor
Anthony:

Your link does work.

I made my map temporarily available to the public and the map switcher button displayed and worked properly.

I'm guessing maybe a new bug was introduced in 3.6?
0 Kudos