Select to view content in your preferred language

error basemaps ( map data not available)

3814
4
03-19-2014 03:06 AM
MohammedKhamis
Emerging Contributor
Dear All ,

Actually when I Zoom in on the Viewer  Flex , I got this error (map data not available) on the Viewer !!

Do you have any one Solution about that for keep basemas on the Viewer .???


In the attached about Error of map data not available , Please look it to understand my Question ,,

Thanks For Helping
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Mohammed,

   The solution would be to turn off that basemap layer using minscale attribute and switch to your own mapservice that supports data at that level of detail.
0 Kudos
MohammedKhamis
Emerging Contributor
Dear Robert,

thanks for your answer ,
Please can you give me more details how to fix it and where ?


Many thanks & Regards ,
Mohammed
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohammed,

   I am not sure what more I can tell you, that I have not already said... Every layer has a minScale and a maxScale attribute in the main config.xml (that you can add). Or you can set the ArcGISTiledMapServiceLayer displayLevels attribute. To do any of this you will have to actually add your basemaps in the main config.xml and not just use the addarcgisbasemaps=true attribute, like this:

<layer label="ESRI Streets" type="tiled" visible="true"
                   url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
                   displaylevels="11,12,13,14,15"/>



See the map elements documentation and look for basemaps section:
http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m30000005p000000.htm

This thread show how to add a specific default basemap to the viewer manually or you can specify all the basemaps you want to use manually:

http://forums.arcgis.com/threads/60018-Change-default-basemap-with-3.0-mapswitcher-widget?highlight=...
0 Kudos
MohammedKhamis
Emerging Contributor
Dear Robert,
Appreciate your support, thank you.
Also this thread help us to solve that problem ..

http://forums.arcgis.com/threads/104976-Making-zoom-to-exactly-desired-scale-in-Flex

Again many thanks,
Regards,
Mohammed
0 Kudos