Overlaying map caches in the .NET Web ADF |
|
Release 9.3 |
When you create any cache that will be overlaid with another cache in the .NET Web ADF, the following items require attention:
You will achieve the fastest performance when your cached maps are in the same coordinate system. If you use different coordinate systems, only the cache of the Primary Map Resource is used and the server generates a dynamic image for all other services in the map, thereby forfeiting the performance benefit of those caches.
You will achieve the performance benefit of both caches only when the two caches have matching scale levels. In the case of a scale level gap (when a scale level exists in one cache but not another), the overlaying image cannot be pulled from the cache and must be generated dynamically, thereby slowing performance. Image quality will also be degraded in this scenario because the dynamic image must be resampled from one of the existing scale levels.
In the diagram below, Cache A does not exist at Scale 3; therefore, the .NET Web ADF will generate a dynamic image to overlay the image from Cache B at this scale.
Dynamic images are not created to match scales beyond the top or bottom scale of the cache. Therefore, for Cache A, a dynamic image will not be generated at Scale 5. Instead, Cache A will not be visible at Scale 5; only the cached image from Cache B will be displayed. Similarly, at Scale 1, only Cache A will be visible.
When choosing an image format for your caches that will be viewed in the .NET Web ADF, keep in mind the following points:
In .NET Web applications containing more than one map service, the Primary Map Resource determines which service will supply the coordinate system and zoom levels of the map. When you build a Web application in Manager, there is a "Use coordinate system and extent of:" drop-down list. The service you choose here becomes the Primary Map Resource. If you use Visual Studio to build your Web applications, the Primary Map Resource is a property of the Map control. Follow these guidelines for setting the Primary Map Resource: