Skip To Content

KML

KML is an XML-based file format used to represent geographic features in applications such as ArcGIS Earth and Google Earth. KML allows you to draw points, lines, and polygons on maps and globes and share them with others. Using KML, you can also designate text, pictures, movies, or links to other GIS services that appear when the user clicks the feature. Many KML client applications, including Map Viewer, are free and provide a familiar, user-friendly browsing experience.

Share your KML

You can add an uncompressed .kml or a compressed .kmz file on the website through the Add Item button on the My Content tab of the content page. You can also add the KML by referencing the URL of a .kml or .kmz file as an item from the web.

Once you've added your KML, you can share it with groups you belong to or make it public by sharing with everybody. When others discover your KML, they can choose to open it in Map Viewer or download the file to their computer.

Add KML layer to your map

If you know a specific KML document on the web that you want to display on your map, you can add it as a layer on the web.

Considerations for using KML in your map

KML was originally created to view features in three-dimensional Earth browsers such as ArcGIS Earth. KML is now supported in a number of two-dimensional web browser clients, including Map Viewer. There are some aspects of KML that do not work well on 2D screens and some limitations to what web browser clients can support.

Supported functionality

Map Viewer supports a subset of KML elements and functionality. The following list will expand as Esri continues to develop support for KML:

  • Placemarks
  • Network links to import data dynamically
  • Ground overlays
  • Folders
  • Polylines and polygons
  • Styles of polylines and polygons, including color, fill, and opacity
  • Print KML layer
  • Icons
  • Descriptive HTML
  • KMZ (compressed KML, including attached images)
  • Embed KML layer in website
  • ExtendedData in pop-up descriptions
  • Network links with refresh parameters
  • KML icons with hotSpot nodes

Limitations

The current limitations of using KML layers in Map Viewer are as follows:

  • The following elements do not display in a map: regionated KML, view-based and time-based refresh parameters, regions inside network links, and screen overlays.
  • Ground overlays and network links without refresh properties do not print.
  • Image overlays that cover large areas may appear distorted.
  • By default, there is a 30-minute cache delay in displaying updates to the KML layer. If the layer contains refresh parameters of less than 30 minutes, the shorter interval is honored. If a refresh interval is set on the layer, the refresh interval is honored.
  • KML layers cannot be used as a basemap.
  • You cannot set the visibility range for KML layers.
  • KML layers cannot be reordered in the map contents.
  • Configuring pop-ups is not supported in KML layers. Any feature data in the layer is automatically displayed in pop-ups; you cannot configure or disable them.
  • If the portal website is installed on the same network as a KML layer, the KML layer will be accessible in the portal website and Map Viewer; otherwise, internal KML layers are not supported.
  • KML layers larger than 10 MB cannot be added to maps.