Knowledge Base - Technical Articles
HowTo: Configure the cache folder to display a 'Data not available' tile for empty map cache areas or missing tiles
| Article ID: | 36939 |
|---|---|
| Software: | ArcGIS Server 9.3.1, 10 ArcGIS API for Microsoft Silverlight/WPF 9.3.1, 10 ArcGIS API for Flex 9.3.1, 10 ArcGIS API for JavaScript 9.3.1, 10 |
| Platforms: | N/A |
Summary
Instructions provided describe how to configure the cache directory to display a 'Data not available' tile for empty map cache areas or when tiles are missing from the cache service.
A 'Data not available' tile can be useful if a user pans to the edge of the map or navigates to an area that has not completed caching or where cache tiles are missing.
Configuring the server to return a 'Data not available' tile can yield a better user experience than returning nothing in some cases.
A 'Data not available' tile can be useful if a user pans to the edge of the map or navigates to an area that has not completed caching or where cache tiles are missing.
Configuring the server to return a 'Data not available' tile can yield a better user experience than returning nothing in some cases.
Procedure
The following instructions are for use with ArcGIS Server 9.3.1 and later versions, for both the .NET and Java platforms.
For ArcGIS Server for the Microsoft .NET Framework 9.3 and previous versions, follow the instructions in the article: Configuring your server to display a 'Data not available' tile for empty map cache areas.
For ArcGIS Server for the Microsoft .NET Framework 9.3 and previous versions, follow the instructions in the article: Configuring your server to display a 'Data not available' tile for empty map cache areas.
- Download the appropriate file from the following links:
missing.png (512x512)
missing.jpg (512x512)
blank.png (512x512)
missing256.png (256x256) --> Rename to missing.png after downloading
missing256.jpg (256x256)) --> Rename to missing.jpg after downloading
blank256.png (256x256) --> Rename to blank.png after downloading
Use missing.png or blank.png if the cache tile format is PNG and if transparency is required.
Use missing.jpg or blank.jpg if the cache tile format is JPEG and if transparency is not required.
If a clear blank tile is needed, use blank.png instead. This is also used for overlay services that require transparency.
- For REST applications such as the JavaScript API, Flex API, or Silverlight API applications, save a missing.png (or missing.jpg) under the _alllayers folder for the map service. For example:
C:\arcgisserver\arcgiscache\MyMapService\Layers\_alllayers\missing.png
The ArcGIS Server 9.3.1 (and later versions) Tile Handler automatically handles missing tiles by replacing the expected but missing tiles with the missing.jpg (or missing.png). - For a Web ADF Application, save a missing.png (or missing.jpg) under the _alllayers folder for the map service. For example:
C:\arcgisserver\arcgiscache\MyMapService\Layers\_alllayers\missing.png
Additionally, the ArcGIS Server cache directory must be configured without specifying a virtual directory. This forces clients to use the tile handler to request tiles (instead of directly requesting tiles from the virtual directories) which retrieves missing.jpg (or missing.png) when a cache tile is not found.
Alternatively, for .NET Web ADF Applications, a custom error response on the virtual cache directory can be configured for HTTP Error 404: “Not Found”. Instead of an error message, the Web server returns the tile. This approach is discussed in the ArcGIS Server blog thread from the Related Information section below. This method is used in ArcGIS Server 9.3 and previous versions.
Related Information
Created: 6/25/2009
Last Modified: 1/5/2011
Article Rating:
(1)
By Anonymous - 07/16/2010 7:38 AM
I followed the article’s instructions, but experienced another problem. I’ve provided details below.
1) Not sure if this matters, but the three images referenced in this article all have a dimension 512 X 512. Yet all of ESRIs new map services have a 256 x 256 tile size. Do you perhaps need to include 256 x 256 versions of these images? 2)The SW classification in the Articles header reads: \"ArcGIS API for Microsoft Silverlight/WPF 9.3.1\" - this is broader than just the Silverlight API, is not it? If so, add the other 2 APIs in there for completeness or rewrite. Thanks. Dana Nibby
Rating: