Welcome to ESRI Blogs

Configuring your server to display a "Data not available" tile for empty map cache areas

Sterling Quinn of the Server team contributed this post on configuring your web server to display custom tiles in areas where you have not yet completed your map cache.

 

At the ESRI Developer Summit, several of you asked how we displayed a “Data not available” tile in empty areas of the ArcGIS Online services. This kind of tile can be useful if someone pans to the edge of the map or navigates to an area that you have not completed caching. Configuring your server to return a “Data not available” tile can in some cases yield a better user experience than returning nothing.


 

 

To display the tile, you need to create a custom error response on your virtual cache directory for HTTP Error 404: “Not Found”. Instead of an error message, the Web server returns the tile.


Following are steps for this process in IIS. Before you perform these steps, you should put the blank or “Data not available” tile in your cache directory. The tile you use must have the same dimensions and image format as the other tiles in the cache.

 

1. In IIS Manager, right-click the Virtual Directory for the specific cache and select Properties.

 

2. Click the Custom Errors tab, scroll down, and select the 404 error code.

 

3. Click the Edit button. In the URL box, specify the tile that IIS should return whenever a tile is missing. It is important to use a URL and not just a path to a file.

 

4. Click OK. Your dialog should look similar to the one below. Click OK again to return to IIS Manager.

 

 

You can download a sample, "Map data not yet available" tile (512 X 512 JPG) that you can use here

 

Published Thursday, April 12, 2007 9:00 AM by Jeremy
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Using the web.config to configure the server to display "Data not available" tile for empty map cache areas

ESRI dev blog posted a great tutorial to clean you GIS app by adding a image when the tile is not available

Sunday, April 15, 2007 8:12 PM by Community Blogs

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

In what cases would this occur? For example, while building a map cache? If a map cache was aborted? If you only built caches are certain areas of interest and the viewer panned outside an AOI? Thanks.
Thursday, April 26, 2007 9:18 AM by Jerry

# Creating a 3D globe cache from a 2D map cache

One purpose of this blog is to share some of the things we’ve learned about our software by using

Thursday, May 31, 2007 9:30 AM by ArcGIS Server Development Blog

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

Does the custom 404 tile affect the behavior of future update operations on the cache? For instance, suppose I receive new data that contains features in an area where there didn't used to be any (so the "no data" tile had been displayed there). If I do an update and select "recreate empty tiles only", will the nonexistent tiles still be built properly? The update isn't confused in any way by these error tiles, is it?
Monday, March 17, 2008 1:51 PM by Brian D.

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

The "data not available" tile should not affect the update. This tile is only returned when the client can't find any tile. If you add some new map tiles by updating the cache, then the server will return those new tiles instead of the 404 error.

Thursday, March 20, 2008 9:13 AM by sterlingdq

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

Is this possible with the Java ADF (Tomcat)?

Tuesday, April 22, 2008 9:04 AM by smidro10

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

Under Tomcat, you have to edit the "web.xml" file of your webapplication like this: 404 /arcgiscache/data_not_avail.jpg Take a look at: http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6
Tuesday, April 22, 2008 10:37 PM by Schuller Tom

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

This seems very simple but I'm not getting it to work. I think it may have to do with the way I am caching and updating the cache: I'm caching an area along the US/Mexican border where only the area along the border needs to ba cached at the largest scales, and the areas seen at the full extent, e.g. Indiana, are only cached at the three samllest scales. So far, I ahve the three smallest scales cached and one area of the border cached at all scales, however when I zoom in to one of the areas not cached at a larger scale, instead of getting the 'data not available' tile the map tries to render dynamically. (??) This also happens if I try to pan outside the area that I have cached. Any suggestions? Thanks
Tuesday, May 06, 2008 8:49 AM by Quinn

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

Hmm... if you're using ArcMap as a client, it is expected behavior that ArcMap draw the map dynamically if it can't get the tile. However, ArcMap should get the "Data not available" tile before it tries to do a dynamic draw. So I am not sure why you are not seeing it.

Another way to quickly see "blank" area without the overhead of a dynamic draw is to remove all layers from your map except one nonvisible layer that defines the extent. This could be thought of as "disconnecting" the cache from the map document. If you want to frequently update the cache or query layers in the cache, this method is not recommended.

Wednesday, May 07, 2008 9:57 AM by sterlingdq

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

This appears to have changed at 9.3 / 9.3.1 Have I missed something?
Wednesday, May 20, 2009 10:26 PM by Simon

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

I have followed all the steps given to configure the "tile not available" image for 404 error. I am using AGS 9.3.1 on IIS 6.0. I am still not able to see the "tile not available image". I am seeing the map is blank and fiddler shows 404, when i zoominto the area. Is anything changed at 9.3.1? My mapservice is static, totally depending upon Tiles. I have a cache on E drive. Would that make any difference? I made the arcgiscache a "virtual directory" also. But still no luck. If anyone know the workaround through ASPX page also, i am ready to implement that? Thanks, Shail ...
Tuesday, May 26, 2009 9:52 AM by shail

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

I am also having trouble getting this to load with AGS 9.3.1. Is there a simple work around that is possible to show this 'data not available' image for uncached areas?
Friday, June 26, 2009 2:55 PM by Blair

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

so, that's a "no," right? i am having similar problems.
Wednesday, September 02, 2009 7:34 AM by max

# Any change on how to do this for 9.3.1???

Yet another person having trouble implementing this on 9.3.1. What changed?
Friday, September 04, 2009 8:52 AM by Ruz

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

Is it possible with 9.3.1 . I tried all steps from this tutorial and it faild on 9.3.1. Please help...
Tuesday, October 13, 2009 3:12 AM by Enrike

# re: Configuring your server to display a "Data not available" tile for empty map cache areas

I got this to work, but I had to use the virtual directory URL - it would not work if I just used a file. However, the one that should support transparency does not - I'm going ot replace it with a blank .png.
Tuesday, November 17, 2009 5:05 AM by Tracie Streltzer

Leave a Comment

(required) 
required 
(required)