{"title":"layer","type":"object","$schema":"http://json-schema.org/draft-07/schema","description":"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.","properties":{"defaultVisibility":{"type":"boolean","description":"Default visibility of the layers in the map service."},"disablePopup":{"type":"boolean","description":"Indicates whether to allow a client to ignore the popups defined on the layer. The popupInfo object could be saved in the map or item.","default":false},"id":{"type":"integer","description":"The layer id, as a numeric value."},"layerDefinition":{"description":"Additional properties that define drawing information and other configurations for the layer.","allOf":[{"$ref":"layerDefinition_schema.json"},{"properties":{"definitionExpression":{},"drawingInfo":{"allOf":[{"$ref":"drawingInfo_schema.json"},{"properties":{"labelingInfo":{},"renderer":{},"showLabels":{},"transparency":{}},"additionalProperties":false}]},"source":{}},"additionalProperties":false}]},"layerUrl":{"type":"string","description":"A URL to a service that should be used for all queries against the layer."},"listMode":{"type":"string","description":"To show or hide the sublayer in the layer list. If the layer has sublayers, selecting `hide-children` will hide them in the layer list.","enum":["hide","hide-children","show"]},"maxScale":{"type":"number","description":"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},"minScale":{"type":"number","description":"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},"name":{"type":"string","description":"The name of the layer."},"parentLayerId":{"type":"integer","description":"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},"popupInfo":{"type":"object","description":"A popupInfo object defining the popup window content for the layer.","$ref":"popupInfo_schema.json"},"showLegend":{"type":"boolean","description":"A Boolean indicating if the layer should be shown in the legend in client applications.","default":true},"subLayerIds":{"type":"array","description":"If the layer is a parent layer, it will have one or more sub layers included in an array.","items":{"type":"integer"}}},"additionalProperties":false}