- URL:
 - https://<mapservice-url>/kml/mapImage.kmz
 - Methods:
 GET- Required Capability:
 - Map
 - Version Introduced:
 - 9.3
 
Description
An individual KML image resource represents a KML Region or ground overlay document wrapped in a KMZ file. KML Regions are returned for map services that are cached and use one of the following supported coordinate systems:
- 
All geographic coordinate systems.
 - 
Coordinate systems with the following IDs:
- 102113
 - 54001
 - 54002
 - 54003
 - 54004
 - 54016
 - 54017
 - 54034
 - 53001
 - 53002
 - 53003
 - 53004
 - 53016
 - 53017
 - 53034
 
 
Ground overlays are created for map services that are not cached or are not in a coordinate system supported for KML Regions.
Request parameters
| Parameter | Details | 
|---|---|
  | The device resolution of the exported image (dots per inch). If the  Example  | 
  | The format of the exported image. The default is  Values:   | 
  | Allows you to filter the features of individual layers in the exported map by specifying definition expressions for those layers. Syntax Example  | 
  | Determines which layers appear on the exported map. There are four ways to specify which layers are shown: 
 Syntax Example  | 
Example usage
The following is a sample request URL used to request a map service that is cached and in a supported projection:
https://machine.domain.com/webadaptor/rest/services/WaterTemplate/WaterDistributionNetwork/MapServer/kml/mapImage.kmzThe above URL would be the same for a map service that is not cached or uses an unsupported projection. The difference is that the returned KML document would include a ground overlay.
https://machine.domain.com/webadaptor/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/kml/mapImage.kmz