Select to view content in your preferred language

Custom Basemaps in Flex Viewer Linked to ArcGIS Online

518
2
Jump to solution
02-19-2014 12:42 PM
AlexandraWalrath
Deactivated User
Hello, all! Does anyone know how to add custom basemaps to a Flex viewer that is linked to an ArcGIS Online map? I have linked my ArcGIS Online and Flex maps as described in this post: http://blogs.esri.com/esri/arcgis/2011/07/29/arcgis-online-maps-with-arcgis-viewer-for-flex/

Unfortunately, now that my Flex viewer is linked to ArcGIS Online, my custom basemaps will no longer display in the Flex viewer. It seems that the default basemaps from ArcGIS Online override my custom basemaps -- even though the custom basemaps are still defined in my Flex viewer configuration file.

I am able to add one custom basemap to my Flex viewer by adding the basemap service to my ArcGIS Online map. However, this only works with a single custom basemap. Also, I am then stuck using the custom basemap as the basemap for my ArcGIS Online map, which is not what I want.

Has anyone else experienced this? Any advice?

Thanks,
Alexandra
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Alexandra,

If you are using a web map id in your map tag then you can not set your own basemaps and operational layers aswell. You should still be able to use the addarcgisbasemaps="true" in the map tag to display the online basemaps.

See a sample here:

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

This uses the following map tag:

<map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" itemid="17da1078c08648f0872f2abeba189de0" top="40" />


Regards

Anthony

View solution in original post

0 Kudos
2 Replies
AnthonyGiles
Honored Contributor
Alexandra,

If you are using a web map id in your map tag then you can not set your own basemaps and operational layers aswell. You should still be able to use the addarcgisbasemaps="true" in the map tag to display the online basemaps.

See a sample here:

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

This uses the following map tag:

<map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" itemid="17da1078c08648f0872f2abeba189de0" top="40" />


Regards

Anthony
0 Kudos
AlexandraWalrath
Deactivated User
Thank you for the quick response, Anthony. I was afraid that was the case. It would be great if future releases made it possible to set our own operational layers as well as custom basemaps!

Alexandra
0 Kudos