Overlaying map caches in the Java Web ADF

When you create caches that will overlay each other in the Java Web ADF, the following items require attention:

Coordinate system of your map

Your cached map services must use the same coordinate system to achieve a successful overlay.

Tile origin and tile size

The tile origin represents the upper left corner of the geographic extent covered by the cache tiles. When building any cache that will be viewed through the Java Web ADF, you should avoid placing the tile origin at any point inside the full extent of the map. Placing the tile origin on the upper left corner of the full extent is appropriate.

When entering the parameters for the map cache, avoid changing the tile origin that appears by default. This value is retrieved automatically from the upper left corner of the full extent of the map document. If you want to change the tile origin, the recommended workflow is to do the following:

Steps:
  1. Open the map document in ArcMap.
  2. Right-click the data frame to be cached, then click Properties.
  3. Click the Data Frame tab.
  4. Click Other under Extent Used by Full Extent Command, then click the Specify Extent button.
  5. Click Current Visible Extent and click OK twice to close the dialog boxes.
  6. Save the map document and close ArcMap.
  7. Using either ArcCatalog or Manager, restart the service to be cached.

When overlaying caches in the Java Web ADF, the tile origins of the caches are not required to match. The tile sizes can also differ between caches.

Scale levels

When you add any cached service to your map, your map becomes visible only at the scale levels of that cached service. When you add two or more cached services to your map, the map becomes visible at all the scale levels in all the cached services. However, the caches will only overlay at the scale levels they have in common.

To provide a smooth navigation experience for the users of your Web applications, ensure that the scale levels in your caches match whenever possible. Failure to sequentially match the scales of the caches could result in layers not being visible at expected scales. For example, in the diagram below, Cache A was not created at scale level 3; therefore, when the user zooms to Scale 3, only Cache B will be visible. Similarly, at scale level 5, Cache A will not be available, but since it is common behavior for a layer to become unavailable at a minimum or maximum scale, this may not present the same problem as the gap at scale level 3.

Image format

When choosing an image format for your caches that will be viewed in the Java Web ADF, keep in mind the following points:


11/18/2013