My experience with the MultiScaleImage control (underlying control in the Map Control) is that all you get is the call for a tile (X,Y,Z), you supply the URI not the actual image. If you supply null it won't render but you would need to know in advance of the request what tiles are not available.
My server side solution work after the request, detecting the "no-image" tile based on its unique size in bytes and then supplying the rescaled tile. I have tried to get something like this to work on the client side with no luck. If you can find a way to supply an image rather than a URI to the MSI's request then it would be possible. That all said, the default aerial modes have a general set of regions set that it will use to restrict the tiles returned. The control by default won't let you zoom into some areas. However if you have overridden this for your own custom imagery to be shown I have a neat set of classes to let you still use these regions, just ping me out of this List for any code samples David. I have tonnes of stuff but I'm waiting till the official release to post it all up. John. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela Sent: Friday, 23 October 2009 9:41 AM To: ozSilverlight Subject: RE: Bing map control - Still showing data when you zoom in too far How about an interim fix? Are we able to detect client side if the tiles aren't available past a certain zoom level, so we can lock the zoom? i.e. zoom factor 17 has tiles, they then try to zoom to 18. There aren't any tiles, so we manually set the zoom level back to 17? David Burela Readify | Senior Developer Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: +61 (0)407 363 860 | E: david.bur...@readify.net| W: <http://www.readify.net/> www.readify.net _____ From: ozsilverlight-boun...@ozsilverlight.com [ozsilverlight-boun...@ozsilverlight.com] On Behalf Of John OBrien [j...@soulsolutions.com.au] Sent: Friday, 23 October 2009 10:30 AM To: 'ozSilverlight' Subject: RE: Bing map control - Still showing data when you zoom in too far It's a known issue David, we're solving this currently on the server side. For performance in our pilot intranet application we put a tilehandler between the application and the real tiles, we're caching tiles in SQL2008. >From here it wasn't too hard to detect no-image tiles then recursively fetch the tile above, resize and crop (and then cache as well). My understanding is that a fix will be provided for the final release but it will rely on knowing where the imagery is in advance. Typically this is not compatible with your custom imagery overlays so it will be interesting to see the solution in the coming months. John. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of David Burela Sent: Thursday, 22 October 2009 11:53 PM To: ozSilverlight Subject: Bing map control - Still showing data when you zoom in too far One issue i have with the bing map control, is that when you zoom in past the level where there is data, you get the "no image" icon everywhere. Is there any way to keep the last real data, but still zoom in. Sure it would be pixelated, but that is preferable over showing nothing David Burela Readify | Senior Developer Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia M: +61 (0)407 363 860 | E: david.bur...@readify.net| W: <http://www.readify.net/> www.readify.net
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight