# Map Visualization Options

**Component Reference:** Map or @splunk/visualizations/map

Source: `@splunk/visualization-schemas/mapOptionsSchema`

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `backgroundColor` | string | `> themes.defaultBackgroundColor` | Specify a color for the background. You might use a dataSource to apply the color. The default for enterprise light is "#FFFFFF". The default for enterprise dark is "#000000". The default for prisma dark is "#0B0C0E". Pattern: `^#(?:[0-9a-fA-F]{3,4}\|[0-9a-fA-F]{6}\|[0-9a-fA-F]{8})$\|^transparent$\|^rgb\\(\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$\|^rgba\\(\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d{1,3}%?),\\s*(\\d*(?:\\.\\d+)?)\\)$\|\\$(\\w+:)?([^$\|:]+?)(\\\|[\|\\w]+)?\\$` |
| `baseLayerTileServer` | string | — | Specify the URL for the set of tiles that make up the base map. |
| `baseLayerTileServerType` | string | — | Specify the type of tile set for the base map. Allowed values: `vector`, `raster` |
| `center` | array<number> | — | Specify the center of the map in coordinates, in the form of [latitude, longitude]. If you don’t provide coordinates, the map automatically centers, based on available location data. If there is no available location data, the center of the map defaults to [37.7749, -122.4194]. Items: number |
| `icon` | string | `` | Specify the url for an svg to display an icon inside bubbles for map. This applies to layers where type: "bubble". |
| `layers` | array<object> | `[{"type":"bubble","latitude":"> primary \| seriesByName(\\"latitude\\")","longitude":"> primary \| seriesByName(\\"longitude\\")","seriesColors":["#7B56DB","#009CEB","#00CDAF","#DD9900","#FF677B","#CB2196","#813193","#0051B5","#008C80","#99B100","#FFA476","#FF6ACE","#AE8CFF","#00689D","#00490A","#465D00","#9D6300","#F6540B","#FF969E","#E47BFE"],"dataValues":"> primary \| seriesByType(\\"number\\")","dataColors":"","bubbleSize":"> primary \| frameWithoutSeriesNames(\\"geobin\\", \\"latitude\\", \\"longitude\\") \| frameBySeriesTypes(\\"number\\")","additionalTooltipFields":[],"resultLimit":1000},{"type":"marker","latitude":"> primary \| seriesByName(\\"latitude\\")","longitude":"> primary \| seriesByName(\\"longitude\\")","seriesColors":["#7B56DB","#009CEB","#00CDAF","#DD9900","#FF677B","#CB2196","#813193","#0051B5","#008C80","#99B100","#FFA476","#FF6ACE","#AE8CFF","#00689D","#00490A","#465D00","#9D6300","#F6540B","#FF969E","#E47BFE"],"dataValues":"> primary \| seriesByType(\\"number\\")","dataColors":"","additionalTooltipFields":[],"resultLimit":1000},{"type":"choropleth","areaIds":"> primary \| seriesByType(\\"string\\")","areaValues":"> primary \| seriesByType(\\"number\\")","dataColors":"> areaValues \| gradient()","additionalTooltipFields":[],"resultLimit":1000,"choroplethEmptyAreaColor":"> themes.defaultChoroplethEmptyAreaColor","choroplethStrokeColor":"transparent","choroplethOpacity":0.8}]` | Specify the optional data visualization layers over the base map. If empty, only the base map appears. Items: object |
| `scaleUnit` | string | `metric` | Specify the scale unit to use. Allowed values: `metric`, `imperial` |
| `showBaseLayer` | boolean | `true` | Specify if showing the base map. |
| `showCoordinates` | boolean | `true` | Specify whether to display coordinates (latitude and longitude) in the tooltip. |
| `showScale` | boolean | `true` | Specify whether to display the scale on the bottom left. |
| `showZoomControls` | boolean | `true` | Specify whether to display the control panel of zoom on the top left. |
| `zoom` | number | — | Specify the zoom level of the map. |

_Auto-generated; do not edit by hand._
