Select to view content in your preferred language

Flex 2.1 Application not displaying Cached Mapping for just one Zoom Level

1045
8
10-11-2010 02:06 AM
BrendanCunningham
Emerging Contributor
Hello,
I have a Flex 2.1 app that uses custom imagery which is cached to the Google/Bing/ESRI tiling structure.

The problem is that the 2nd most detailed zoom level will not display for any of my custom cached tiles. Instead the screen goes pure white/blank. All other scales display fine, but the 1:2257 scale will not display at all in my Flex 2.1 Apps. From my Rest service details:

Level ID: 7 [Start Tile, End Tile]
Resolution: 0.597164283559817
Scale: 2256.994353


It is definitely cached correctly for this level, and it displays perfectly in the Javascript API viewer. I am also using Bing background mapping in my App, but it displays perfectly in the Flex App at 1:2257.

Is this a bug or am I doing something wrong?

Brendan
Tags (2)
0 Kudos
8 Replies
DasaPaddock
Esri Regular Contributor
Does it work correctly in a very simple app like this one when you change the url to your service?

http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=TiledMap
0 Kudos
BrendanCunningham
Emerging Contributor
Hi Dasa,
The cached data displays perfectly at all scales in the simple application, as you suggested.

The latest Flex Viewer 2.1 will not display my cached mapping at 1:2257. I have also loaded the map service with the cached data into a Sample Flex Viewer 1.3 application, and it will not display at that scale either.

Any thoughts?

Brendan
0 Kudos
DasaPaddock
Esri Regular Contributor
What happens in the test sample app if you put the same Bing layer as the first layer before the problem layer?
0 Kudos
BrendanCunningham
Emerging Contributor
Everything works fine in the test sample app.

However I completely removed Bing references from my Flex Viewer application, and the problem still exists. Also, this problem exists for any cached mapping that I have created.

Very frustrating.
0 Kudos
DasaPaddock
Esri Regular Contributor
Is it possible that you're using any widgets or custom code that's change the map's lods?
0 Kudos
BrendanCunningham
Emerging Contributor
Hi Dasa,
That's a great suggestion.
Sure enough, I loaded my cached imagery into an out-of-the-box Flex 2.1 application and the mapping displays perfectly at all scales.
So I took your advice and unpublished/deleted a number of widgets.
I still can't figure out which on is causing the problem!

I'm almost quitting on this  one - I am going to recreate my application widget by widget, and check the background mapping for each one I add.

Thanks for your help though.

If I locate the problem widget (or code) I'll post it here.

Brendan
0 Kudos
BrendanCunningham
Emerging Contributor
Hi Dasa,
I recreated an out-of-the-box Flex Viewer 2.1 application.
I re-built the application after each change until the Cached Mapping (1:2257) problem existed.
Thankfully it didn't take long to find it!

If I remove the default ESRI Map Service for "Streets" and add my own background mapping then the problem exists. The only way my default mapping will appear at all scales is if I include the folowing reference in my config.xml file:

        <layer label="Street Map" type="tiled" visible="false"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>


Once this Map Service is removed, none of my custom cached mapping services will display  at 1:2257, ie, the 2nd most detailed zoom using these cache scale settings.

I've since tried this with a number of applications and it occurs for all of them.

Is this a bug with the 2.1 viewer? Has anyone else spotted this?

Brendan
0 Kudos
BrendanCunningham
Emerging Contributor
Thought I had this sorted, but no joy.
Have gone through all my custom code and widgets  - and cannot isolate the problem.
My quick fix solution is to place the ESRI Street maps service first, so the best scale is 1:4514.

Has anyone else encountered this problem?

Brendan
0 Kudos