Keyhole Markup Language (KML) is an XML-based format for storing geographic data and associated content and is an official Open Geospatial Consortium (OGC) standard. KML is a common format for sharing geographic data with non-GIS users as it can be easily delivered on the Internet.

Referenced by: operationalLayers

Properties

PropertyDetails
blendModeBlend modes are used to create various effects by blending colors of top and background layers. normal blend mode is the default.
Valid values: average, color, color-burn, color-dodge, darken, destination-atop, destination-in, destination-out, destination-over, difference, exclusion, hard-light, hue, invert, lighten, lighter, luminosity, minus, multiply, normal, overlay, plus, reflect, saturation, screen, soft-light, source-atop, source-in, source-out, vivid-light, xor
effectEffect provides various filter functions to achieve different visual effects similar to how image filters (photo apps) work.
idA unique identifying string for the layer.
itemIdOptional string containing the item ID if it’s registered on ArcGIS Online or your organization’s portal.
layerTypeString indicating the layer type.
Valid value of this property KML
maxScaleA number representing the maximum scale at which the layer will be visible. The number is the scale’s denominator.
minScaleA number representing the minimum scale at which the layer will be visible. The number is the scale’s denominator.
opacityThe degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
refreshIntervalRefresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.
showLegendBoolean value indicating whether to display the layer in the legend. Default value is true.
titleA user-friendly string title for the layer that can be used in a table of contents.
typeDeprecated. Use layerType instead.
urlThe URL to the layer.
visibilityBoolean property determining whether the layer is initially visible in the web map.
visibilityTimeExtentRepresents time extent that will control when a layer should be visible based on webmap’s current time. Visibility time extent only affects the layer visibility and will not filter the data.
visibleFolders[]Array of numeric IDs of folders that will be made visible.

Example

{
"id": "kml_9012",
"url": "http://rmgsc.cr.usgs.gov/outgoing/geomac/ActiveFirePerimeters.kml",
"visibility": true,
"opacity": 1,
"title": "ActiveFirePerimeters",
"type": "KML",
"layerType": "KML",
"visibleFolders": [
0,
1
]
}