mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Geomap visualization refactor (#94101)
Co-authored-by: Irene Rodriguez <irene.rodriguez@grafana.com>
This commit is contained in:
@@ -51,7 +51,7 @@ refs:
|
|||||||
|
|
||||||
Geomaps allow you to view and customize the world map using geospatial data. It's the ideal visualization if you have data that includes location information and you want to see it displayed in a map.
|
Geomaps allow you to view and customize the world map using geospatial data. It's the ideal visualization if you have data that includes location information and you want to see it displayed in a map.
|
||||||
|
|
||||||
You can configure and overlay [map layers](#types), like heatmaps and networks, and blend included basemaps or your own custom maps. This helps you to easily focus on the important location-based characteristics of the data.
|
You can configure and overlay [map layers](#layer-type), like heatmaps and networks, and blend included basemaps or your own custom maps. This helps you to easily focus on the important location-based characteristics of the data.
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-example-8-1-0.png" max-width="1200px" alt="Geomap visualization" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-example-8-1-0.png" max-width="1200px" alt="Geomap visualization" >}}
|
||||||
|
|
||||||
@@ -141,42 +141,42 @@ The other location types— airport codes or US state codes—aren't aut
|
|||||||
|
|
||||||
If you want to use other codes or give the field a custom name, you can follow the steps in the [Location mode](#location-mode) section.
|
If you want to use other codes or give the field a custom name, you can follow the steps in the [Location mode](#location-mode) section.
|
||||||
|
|
||||||
## Panel options
|
## Configuration options
|
||||||
|
|
||||||
|
### Panel options
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/panel-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/panel-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|
||||||
## Map View
|
### Map view options
|
||||||
|
|
||||||
The map view controls the initial view of the map when the dashboard loads.
|
The map view controls the initial view of the map when the dashboard loads.
|
||||||
|
|
||||||
### Initial View
|
#### Initial View
|
||||||
|
|
||||||
The initial view configures how the geomap renders when the panel is first loaded.
|
The initial view configures how the geomap renders when the panel is first loaded.
|
||||||
|
|
||||||
- **View** sets the center for the map when the panel first loads.
|
- **View** - Sets the center for the map when the panel first loads. Refer to the table following this list for view selections.
|
||||||
- **Fit to data** fits the map view based on the data extents of Map layers and updates when data changes.
|
- **Zoom** - Sets the initial zoom level.
|
||||||
- **Data** option allows selection of extent based on data from "All layers", a single "Layer", or the "Last value" from a selected layer.
|
- **Use current map settings** - Use the settings of the current map to set the center.
|
||||||
- **Layer** can be selected if fitting data from a single "Layer" or the "Last value" of a layer.
|
|
||||||
- **Padding** sets padding in relative percent beyond data extent (not available when looking at "Last value" only).
|
|
||||||
- **Max Zoom** sets the maximum zoom level when fitting data.
|
|
||||||
- **Coordinates** sets the map view based on:
|
|
||||||
- **Latitude**
|
|
||||||
- **Longitude**
|
|
||||||
- Default Views are also available including:
|
|
||||||
- **(0°, 0°)**
|
|
||||||
- **North America**
|
|
||||||
- **South America**
|
|
||||||
- **Europe**
|
|
||||||
- **Africa**
|
|
||||||
- **West Asia**
|
|
||||||
- **South Asia**
|
|
||||||
- **South-East Asia**
|
|
||||||
- **East Asia**
|
|
||||||
- **Australia**
|
|
||||||
- **Oceania**
|
|
||||||
- **Zoom** sets the initial zoom level.
|
|
||||||
|
|
||||||
### Share view
|
<!-- prettier-ignore-start -->
|
||||||
|
| View selection | Description |
|
||||||
|
|---|---|
|
||||||
|
| Fit to data | fits the map view based on the data extents of Map layers and updates when data changes.<ul><li>**Data** - option allows selection of extent based on data from "All layers", a single "Layer", or the "Last value" from a selected layer.</li><li>**Layer** - can be selected if fitting data from a single "Layer" or the "Last value" of a layer.</li><li>**Padding** - sets padding in relative percent beyond data extent (not available when looking at "Last value" only).</li><li>**Max zoom** - sets the maximum zoom level when fitting data.</li> |
|
||||||
|
| (0°, 0°) | |
|
||||||
|
| Coordinates | sets the map view based on: **Latitude** and **Longitude**. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
Default Views are also available including:
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| | | | | |
|
||||||
|
| ------------- | ------------- | ------ | ------ | --------- |
|
||||||
|
| North America | South America | Europe | Africa | West Asia |
|
||||||
|
| South Asia | South-East Asia | East Asia | Australia | Oceania |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
#### Share view
|
||||||
|
|
||||||
The **Share view** option allows you to link the movement and zoom actions of multiple map visualizations within the same dashboard. The map visualizations that have this option enabled act in tandem when one of them is moved or zoomed, leaving the other ones independent.
|
The **Share view** option allows you to link the movement and zoom actions of multiple map visualizations within the same dashboard. The map visualizations that have this option enabled act in tandem when one of them is moved or zoomed, leaving the other ones independent.
|
||||||
|
|
||||||
@@ -184,11 +184,28 @@ The **Share view** option allows you to link the movement and zoom actions of mu
|
|||||||
You might need to reload the dashboard for this feature to work.
|
You might need to reload the dashboard for this feature to work.
|
||||||
{{< /admonition >}}
|
{{< /admonition >}}
|
||||||
|
|
||||||
## Map layers
|
### Map layers options
|
||||||
|
|
||||||
Geomaps support showing multiple layers. Each layer determines how you visualize geospatial data on top of the base map.
|
Geomaps support showing multiple layers. Each layer determines how you visualize geospatial data on top of the base map.
|
||||||
|
|
||||||
### Types
|
There are three options that you need to set for all maps:
|
||||||
|
|
||||||
|
- [Layer type](#layer-type)
|
||||||
|
- [Data](#data)
|
||||||
|
- [Location mode](#location-mode)
|
||||||
|
|
||||||
|
Other options are dependent on your map layer type and are described within the layer type section.
|
||||||
|
|
||||||
|
The layer controls allow you to create layers, change their name, reorder and delete layers.
|
||||||
|
|
||||||
|
- **Add layer** creates an additional, configurable data layer for the geomap. When you add a layer, you are prompted to select a layer type. You can change the layer type at any point during panel configuration. See the **Layer Types** section above for details on each layer type.
|
||||||
|
- **Edit layer name (pencil icon)** renames the layer.
|
||||||
|
- **Trash Bin** deletes the layer.
|
||||||
|
- **Reorder (six dots/grab handle)** allows you to change the layer order. Data on higher layers will appear above data on lower layers. The visualization will update the layer order as you drag and drop to help simplify choosing a layer order.
|
||||||
|
|
||||||
|
You can add multiple layers of data to a single geomap in order to create rich, detailed visualizations.
|
||||||
|
|
||||||
|
#### Layer type
|
||||||
|
|
||||||
There are seven map layer types to choose from in a geomap.
|
There are seven map layer types to choose from in a geomap.
|
||||||
|
|
||||||
@@ -199,6 +216,10 @@ There are seven map layer types to choose from in a geomap.
|
|||||||
- [Route (Beta)](#route-layer-beta) render data points as a route.
|
- [Route (Beta)](#route-layer-beta) render data points as a route.
|
||||||
- [Photos (Beta)](#photos-layer-beta) renders a photo at each data point.
|
- [Photos (Beta)](#photos-layer-beta) renders a photo at each data point.
|
||||||
- [Network (Beta)](#network-layer-beta) visualizes a network graph from the data.
|
- [Network (Beta)](#network-layer-beta) visualizes a network graph from the data.
|
||||||
|
- [Open Street Map](#open-street-map-layer) adds a map from a collaborative free geographic world database.
|
||||||
|
- [CARTO basemap](#carto-basemap-layer) adds a layer from CARTO Raster basemaps.
|
||||||
|
- [ArcGIS MapServer](#arcgis-mapserver-layer) adds a layer from an ESRI ArcGIS MapServer.
|
||||||
|
- [XYZ Tile layer](#xyz-tile-layer) adds a map from a generic tile layer.
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
{{% admonition type="note" %}}
|
||||||
Beta is equivalent to the [public preview](/docs/release-life-cycle/) release stage.
|
Beta is equivalent to the [public preview](/docs/release-life-cycle/) release stage.
|
||||||
@@ -209,9 +230,7 @@ There are also two experimental (or alpha) layer types.
|
|||||||
- **Icon at last point (alpha)** renders an icon at the last data point.
|
- **Icon at last point (alpha)** renders an icon at the last data point.
|
||||||
- **Dynamic GeoJSON (alpha)** styles a GeoJSON file based on query results.
|
- **Dynamic GeoJSON (alpha)** styles a GeoJSON file based on query results.
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
To enable experimental layers. Set `enable_alpha` to `true` in your configuration file:
|
||||||
To enable experimental layers:
|
|
||||||
Set `enable_alpha` to `true` in your configuration file:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
[panels]
|
[panels]
|
||||||
@@ -224,29 +243,11 @@ To enable the experimental layers using Docker, run the following command:
|
|||||||
docker run -p 3000:3000 -e "GF_PANELS_ENABLE_ALPHA=true" grafana/grafana:<VERSION>
|
docker run -p 3000:3000 -e "GF_PANELS_ENABLE_ALPHA=true" grafana/grafana:<VERSION>
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% /admonition %}}
|
#### Data
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
|
||||||
[Basemap layer types](#types-1) can also be added as layers. You can specify an opacity.
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
### Layer Controls
|
|
||||||
|
|
||||||
The layer controls allow you to create layers, change their name, reorder and delete layers.
|
|
||||||
|
|
||||||
- **Add layer** creates an additional, configurable data layer for the geomap. When you add a layer, you are prompted to select a layer type. You can change the layer type at any point during panel configuration. See the **Layer Types** section above for details on each layer type.
|
|
||||||
- The layer controls allow you to rename, delete, and reorder the layers of the visualization.
|
|
||||||
- **Edit layer name (pencil icon)** renames the layer.
|
|
||||||
- **Trash Bin** deletes the layer.
|
|
||||||
- **Reorder (six dots/grab handle)** allows you to change the layer order. Data on higher layers will appear above data on lower layers. The visualization will update the layer order as you drag and drop to help simplify choosing a layer order.
|
|
||||||
|
|
||||||
You can add multiple layers of data to a single geomap in order to create rich, detailed visualizations.
|
|
||||||
|
|
||||||
### Data
|
|
||||||
|
|
||||||
Geomaps need a source of geographical data gathered from a data source query which can return multiple datasets. By default Grafana picks the first dataset, but this drop-down allows you to pick other datasets if the query returns more than one.
|
Geomaps need a source of geographical data gathered from a data source query which can return multiple datasets. By default Grafana picks the first dataset, but this drop-down allows you to pick other datasets if the query returns more than one.
|
||||||
|
|
||||||
### Location mode
|
#### Location mode
|
||||||
|
|
||||||
There are four options to map the data returned by the selected query:
|
There are four options to map the data returned by the selected query:
|
||||||
|
|
||||||
@@ -259,23 +260,290 @@ There are four options to map the data returned by the selected query:
|
|||||||
- **Geohash** specifies that your query holds geohash data. You will be prompted to select a string data field for the geohash from your database query.
|
- **Geohash** specifies that your query holds geohash data. You will be prompted to select a string data field for the geohash from your database query.
|
||||||
- **Lookup** specifies that your query holds location name data that needs to be mapped to a value. You will be prompted to select the lookup field from your database query and a gazetteer. The gazetteer is the directory that is used to map your queried data to a geographical point.
|
- **Lookup** specifies that your query holds location name data that needs to be mapped to a value. You will be prompted to select the lookup field from your database query and a gazetteer. The gazetteer is the directory that is used to map your queried data to a geographical point.
|
||||||
|
|
||||||
## Basemap layer
|
#### Markers layer
|
||||||
|
|
||||||
|
The markers layer allows you to display data points as different marker shapes such as circles, squares, triangles, stars, and more.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | Configure the data settings for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Location | Configure the data settings for the layer. For more information, refer to [Location mode](#location-mode). |
|
||||||
|
| Size | Configures the size of the markers. The default is `Fixed size`, which makes all marker sizes the same regardless of the data; however, there is also an option to size the markers based on data corresponding to a selected field. `Min` and `Max` marker sizes have to be set such that the markers can scale within this range. |
|
||||||
|
| Symbol | Allows you to choose the symbol, icon, or graphic to aid in providing additional visual context to your data. Choose from assets that are included with Grafana such as simple symbols or the Unicon library. You can also specify a URL containing an image asset. The image must be a scalable vector graphic (SVG). |
|
||||||
|
| Symbol Vertical Align | Configures the vertical alignment of the symbol relative to the data point. Note that the symbol's rotation angle is applied first around the data point, then the vertical alignment is applied relative to the rotation of the symbol. |
|
||||||
|
| Symbol Horizontal Align | Configures the horizontal alignment of the symbol relative to the data point. Note that the symbol's rotation angle is applied first around the data point, then the horizontal alignment is applied relative to the rotation of the symbol. |
|
||||||
|
| Color | Configures the color of the markers. The default `Fixed color` sets all markers to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section. |
|
||||||
|
| Fill opacity | Configures the transparency of each marker. |
|
||||||
|
| Rotation angle | Configures the rotation angle of each marker. The default is `Fixed value`, which makes all markers rotate to the same angle regardless of the data; however, there is also an option to set the rotation of the markers based on data corresponding to a selected field. |
|
||||||
|
| Text label | Configures a text label for each marker. |
|
||||||
|
| Show legend | Allows you to toggle the legend for the layer. |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
#### Heatmap layer
|
||||||
|
|
||||||
|
The heatmap layer clusters various data points to visualize locations with different densities.
|
||||||
|
To add a heatmap layer:
|
||||||
|
|
||||||
|
Click on the drop-down menu under Data Layer and choose `Heatmap`.
|
||||||
|
|
||||||
|
Similar to `Markers`, you are prompted with various options to determine which data points to visualize and how you want to visualize them.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | Configure the data settings for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Location | Configure the data settings for the layer. For more information, refer to [Location mode](#location-mode). |
|
||||||
|
| Weight values | Configures the size of the markers. The default is `Fixed size`, which makes all marker sizes the same regardless of the data; however, there is also an option to size the markers based on data corresponding to a selected field. `Min` and `Max` marker sizes have to be set such that the markers can scale within this range. |
|
||||||
|
| Radius | Configures the size of the heatmap clusters. |
|
||||||
|
| Blur | Configures the amount of blur on each cluster. |
|
||||||
|
| Opacity | Configures the opacity of each cluster. |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
#### GeoJSON layer
|
||||||
|
|
||||||
|
The GeoJSON layer allows you to select and load a static GeoJSON file from the filesystem.
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| GeoJSON URL | Provides a choice of GeoJSON files that ship with Grafana. |
|
||||||
|
| Default Style | Controls which styles to apply when no rules above match.<ul><li>**Color** - configures the color of the default style</li><li>**Opacity** - configures the default opacity</li></ul> |
|
||||||
|
| Style Rules | Apply styles based on feature properties <ul><li>**Rule** - allows you to select a _feature_, _condition_, and _value_ from the GeoJSON file in order to define a rule. The trash bin icon can be used to delete the current rule.</li><li>**Color** - configures the color of the style for the current rule</li><li>**Opacity** - configures the transparency level for the current rule</li> |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
Styles can be set within the "properties" object of the GeoJSON with support for the following geometries:
|
||||||
|
|
||||||
|
**Polygon, MultiPolygon**
|
||||||
|
|
||||||
|
- **"fill"** - The color of the interior of the polygon(s)
|
||||||
|
- **"fill-opacity"** - The opacity of the interior of the polygon(s)
|
||||||
|
- **"stroke-width"** - The width of the line component of the polygon(s)
|
||||||
|
|
||||||
|
**Point, MultiPoint**
|
||||||
|
|
||||||
|
- **"marker-color"** - The color of the point(s)
|
||||||
|
- **"marker-size"** - The size of the point(s)
|
||||||
|
|
||||||
|
**LineString, MultiLineString**
|
||||||
|
|
||||||
|
- **"stroke"** - The color of the line(s)
|
||||||
|
- **"stroke-width"** - The width of the line(s)
|
||||||
|
|
||||||
|
#### Night / Day layer
|
||||||
|
|
||||||
|
The Night / Day layer displays night and day regions based on the current time range.
|
||||||
|
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-day-night-9-1-0.png" max-width="1200px" alt="Geomap panel Night / Day" >}}
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | Configures the data set for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Show | Toggles the time source from panel time range. |
|
||||||
|
| Night region color | Picks the color for the night region. |
|
||||||
|
| Display sun | Toggles the sun icon. |
|
||||||
|
| Opacity | Set the opacity from `0` (transparent) to `1` (opaque). |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
[Extensions for OpenLayers - DayNight](https://viglino.github.io/ol-ext/examples/layer/map.daynight.html)
|
||||||
|
|
||||||
|
#### Route layer (Beta)
|
||||||
|
|
||||||
|
{{% admonition type="caution" %}}
|
||||||
|
The Route layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
||||||
|
{{% /admonition %}}
|
||||||
|
|
||||||
|
The Route layer renders data points as a route.
|
||||||
|
|
||||||
|
{{< figure src="/media/docs/grafana/geomap-route-layer-basic-9-4-0.png" max-width="1200px" alt="Geomap panel Route" >}}
|
||||||
|
|
||||||
|
The layer can also render a route with arrows.
|
||||||
|
|
||||||
|
{{< figure src="/media/docs/grafana/geomap-route-layer-arrow-size-9-4-0.png" max-width="1200px" alt="Geomap panel Route arrows with size" >}}
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | configure the data settings for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Location | configure the data settings for the layer. For more information, refer to [Location mode](#location-mode). |
|
||||||
|
| Size | sets the route thickness. Fixed value by default. When field data is selected you can set the Min and Max range in which field data can scale. |
|
||||||
|
| Color | sets the route color. Set to `Fixed color` by default. You can also tie the color to field data. |
|
||||||
|
| Fill opacity | configures the opacity of the route. |
|
||||||
|
| Text label | configures a text label for each route. |
|
||||||
|
| Arrow | sets the arrow styling to display along route, in order of data. Choose from: **None**, **Forward**, and **Reverse** |
|
||||||
|
| Display tooltip | allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
[Extensions for OpenLayers - Flow Line Style](http://viglino.github.io/ol-ext/examples/style/map.style.gpxline.html)
|
||||||
|
|
||||||
|
#### Photos layer (Beta)
|
||||||
|
|
||||||
|
{{% admonition type="caution" %}}
|
||||||
|
The Photos layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
||||||
|
{{% /admonition %}}
|
||||||
|
|
||||||
|
The Photos layer renders a photo at each data point.
|
||||||
|
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-photos-9-3-0.png" max-width="1200px" alt="Geomap panel Photos" >}}
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | Configure the data settings for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Location | Configure the data settings for the layer. For more information, refer to [Location mode](#location-mode). |
|
||||||
|
| Image Source field | Allows you to select a string field containing image data in either of the following formats:<ul><li>**Image URLs**</li><li>**Base64 encoded** - Image binary ("data:image/png;base64,...")</li></ul> |
|
||||||
|
| Kind | Sets the frame style around the images. Choose from: **Square**, **Circle**, **Anchored**, and **Folio**. |
|
||||||
|
| Crop | Toggles whether the images are cropped to fit. |
|
||||||
|
| Shadow | Toggles a box shadow behind the images. |
|
||||||
|
| Border | Sets the border size around images. |
|
||||||
|
| Border color | Sets the border color around images. |
|
||||||
|
| Radius | Sets the overall size of images in pixels. |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
[Extensions for OpenLayers - Image Photo Style](http://viglino.github.io/ol-ext/examples/style/map.style.photo.html)
|
||||||
|
|
||||||
|
#### Network layer (Beta)
|
||||||
|
|
||||||
|
{{% admonition type="caution" %}}
|
||||||
|
The Network layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
||||||
|
{{% /admonition %}}
|
||||||
|
|
||||||
|
The Network layer renders a network graph. This layer supports the same [data format supported by the node graph visualization](ref:data-format) with the addition of [geospatial data](#location-mode) included in the nodes data. The geospatial data is used to locate and render the nodes on the map.
|
||||||
|
|
||||||
|
{{< figure src="/media/docs/grafana/screenshot-grafana-10-1-geomap-network-layer-v2.png" max-width="750px" alt="Geomap network layer" >}}
|
||||||
|
|
||||||
|
You can convert node graph data to a network layer:
|
||||||
|
{{< video-embed src="/media/docs/grafana/screen-recording-10-1-geomap-network-layer-from-node-graph.mp4" max-width="750px" alt="Node graph to Geomap network layer" >}}
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Data | Configure the data settings for the layer. For more information, refer to [Data](#data). |
|
||||||
|
| Location | Configure the data settings for the layer. For more information, refer to [Location mode](#location-mode). |
|
||||||
|
| Arrow | Sets the arrow direction to display for each edge, with forward meaning source to target. Choose from: **None**, **Forward**, **Reverse** and **Both**. |
|
||||||
|
| Show legend | Allows you to toggle the legend for the layer. **Note:** The legend currently only supports node data. |
|
||||||
|
| Display tooltip | Allows you to toggle tooltips for the layer. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
##### Node styles options
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Size | Configures the size of the nodes. The default is `Fixed size`, which makes all node sizes the same regardless of the data; however, there is also an option to size the nodes based on data corresponding to a selected field. `Min` and `Max` node sizes have to be set such that the nodes can scale within this range. |
|
||||||
|
| Symbol | Allows you to choose the symbol, icon, or graphic to aid in providing additional visual context to your data. Choose from assets that are included with Grafana such as simple symbols or the Unicon library. You can also specify a URL containing an image asset. The image must be a scalable vector graphic (SVG). |
|
||||||
|
| Color | Configures the color of the nodes. The default `Fixed color` sets all nodes to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section. |
|
||||||
|
| Fill opacity | Configures the transparency of each node. |
|
||||||
|
| Rotation angle | Configures the rotation angle of each node. The default is `Fixed value`, which makes all nodes rotate to the same angle regardless of the data; however, there is also an option to set the rotation of the nodes based on data corresponding to a selected field. |
|
||||||
|
| Text label | Configures a text label for each node. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
##### Edge styles options
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
|
| ------ | ----------- |
|
||||||
|
| Size | Configures the line width of the edges. The default is `Fixed size`, which makes all edge line widths the same regardless of the data; however, there is also an option to size the edges based on data corresponding to a selected field. `Min` and `Max` eges sizes have to be set such that the edges can scale within this range. |
|
||||||
|
| Color | Configures the color of the edges. The default `Fixed color` sets all edges to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section. |
|
||||||
|
| Fill opacity | Configures the transparency of each edge. |
|
||||||
|
| Text label | Configures a text label for each edge. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
#### Open Street Map layer
|
||||||
|
|
||||||
|
A map from a collaborative free geographic world database.
|
||||||
|
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-osm-9-1-0.png" max-width="1200px" alt="Geomap panel Open Street Map" >}}
|
||||||
|
|
||||||
|
- **Opacity** from 0 (transparent) to 1 (opaque)
|
||||||
|
- **Display tooltip** - allows you to toggle tooltips for the layer.
|
||||||
|
|
||||||
|
[About Open Street Map](https://www.openstreetmap.org/about)
|
||||||
|
|
||||||
|
#### CARTO basemap layer
|
||||||
|
|
||||||
|
A CARTO layer is from CARTO Raster basemaps.
|
||||||
|
|
||||||
|
- **Theme**
|
||||||
|
- Auto
|
||||||
|
- Light
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-carto-light-9-1-0.png" max-width="1200px" alt="Geomap panel CARTO light example" >}}
|
||||||
|
- Dark
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-carto-dark-9-1-0.png" max-width="1200px" alt="Geomap panel CARTO dark example" >}}
|
||||||
|
- **Show labels** shows the Country details on top of the map.
|
||||||
|
- **Opacity** from 0 (transparent) to 1 (opaque)
|
||||||
|
- **Display tooltip** - allows you to toggle tooltips for the layer.
|
||||||
|
|
||||||
|
[About CARTO](https://carto.com/about-us/)
|
||||||
|
|
||||||
|
#### ArcGIS MapServer layer
|
||||||
|
|
||||||
|
An ArcGIS layer is a layer from an ESRI ArcGIS MapServer.
|
||||||
|
|
||||||
|
- **Server Instance** to select the map type.
|
||||||
|
- World Street Map
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wsm-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS World Street Map" >}}
|
||||||
|
- World Imagery
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wi-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS World Imagery" >}}
|
||||||
|
- World Physical
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wp-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS World Physical" >}}
|
||||||
|
- Topographic
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-topographic-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS Topographic" >}}
|
||||||
|
- USA Topographic
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-usa-topographic-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS USA Topographic" >}}
|
||||||
|
- World Ocean
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-ocean-9-1-0.png" max-width="1200px" alt="Geomap panel ArcGIS World Ocean" >}}
|
||||||
|
- Custom MapServer (see [XYZ](#xyz-tile-layer) for formatting)
|
||||||
|
- URL template
|
||||||
|
- Attribution
|
||||||
|
- **Opacity** from 0 (transparent) to 1 (opaque)
|
||||||
|
- **Display tooltip** - allows you to toggle tooltips for the layer.
|
||||||
|
|
||||||
|
##### More Information
|
||||||
|
|
||||||
|
- [ArcGIS Services](https://services.arcgisonline.com/arcgis/rest/services)
|
||||||
|
- [About ESRI](https://www.esri.com/en-us/about/about-esri/overview)
|
||||||
|
|
||||||
|
#### XYZ Tile layer
|
||||||
|
|
||||||
|
The XYZ Tile layer is a map from a generic tile layer.
|
||||||
|
|
||||||
|
{{< figure src="/static/img/docs/geomap-panel/geomap-xyz-9-1-0.png" max-width="1200px" alt="Geomap panel xyz example" >}}
|
||||||
|
|
||||||
|
- **URL template** - Set a valid tile server url, with {z}/{x}/{y} for example: https://tile.openstreetmap.org/{z}/{x}/{y}.png
|
||||||
|
- **Attribution** sets the reference string for the layer if displayed in [map controls](#show-attribution)
|
||||||
|
- **Opacity** from 0 (transparent) to 1 (opaque)
|
||||||
|
|
||||||
|
##### More information
|
||||||
|
|
||||||
|
- [Tiled Web Map Wikipedia](https://en.wikipedia.org/wiki/Tiled_web_map)
|
||||||
|
- [List of Open Street Map Tile Servers](https://wiki.openstreetmap.org/wiki/Tile_servers)
|
||||||
|
|
||||||
|
### Basemap layer options
|
||||||
|
|
||||||
A basemap layer provides the visual foundation for a mapping application. It typically contains data with global coverage. Several base layer options
|
A basemap layer provides the visual foundation for a mapping application. It typically contains data with global coverage. Several base layer options
|
||||||
are available each with specific configuration options to style the base map.
|
are available each with specific configuration options to style the base map.
|
||||||
|
|
||||||
### Types
|
Basemap layer types can also be added as layers. You can specify an opacity.
|
||||||
|
|
||||||
There are four basemap layer types to choose from in a geomap.
|
There are four basemap layer types to choose from in a geomap.
|
||||||
|
|
||||||
- [Open Street Map](#open-street-map-layer) adds a map from a collaborative free geographic world database.
|
- [Open Street Map](#open-street-map-layer) adds a map from a collaborative free geographic world database.
|
||||||
- [CARTO](#carto-layer) adds a layer from CARTO Raster basemaps.
|
- [CARTO basemap](#carto-basemap-layer) adds a layer from CARTO Raster basemaps.
|
||||||
- [ArcGIS](#arcgis-layer) adds a layer from an ESRI ArcGIS MapServer.
|
- [ArcGIS MapServer](#arcgis-mapserver-layer) adds a layer from an ESRI ArcGIS MapServer.
|
||||||
- [XYZ](#xyz-tile-layer) adds a map from a generic tile layer.
|
- [XYZ Tile layer](#xyz-tile-layer) adds a map from a generic tile layer.
|
||||||
|
|
||||||
### Default
|
The default basemap layer uses the CARTO map. You can define custom default base layers in the `.ini` configuration file.
|
||||||
|
|
||||||
The default base layer uses the [CARTO](#carto-layer) map. You can define custom default base layers in the `.ini` configuration file.
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -299,6 +567,9 @@ geomap_default_baselayer = `{
|
|||||||
|
|
||||||
- **esri-xyz** loads the ESRI tile server. There are already multiple server instances implemented to show the various map styles: `world-imagery`, `world-physical`, `topo`, `usa-topo`, and `ocean`. The `custom` server option allows you to configure your own ArcGIS map server. Here are some examples:
|
- **esri-xyz** loads the ESRI tile server. There are already multiple server instances implemented to show the various map styles: `world-imagery`, `world-physical`, `topo`, `usa-topo`, and `ocean`. The `custom` server option allows you to configure your own ArcGIS map server. Here are some examples:
|
||||||
|
|
||||||
|
{{< tabs >}}
|
||||||
|
{{< tab-content name="World imagery" >}}
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
geomap_default_baselayer = `{
|
geomap_default_baselayer = `{
|
||||||
"type": "esri-xyz",
|
"type": "esri-xyz",
|
||||||
@@ -308,6 +579,9 @@ geomap_default_baselayer = `{
|
|||||||
}`
|
}`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{< /tab-content >}}
|
||||||
|
{{< tab-content name="Custom" >}}
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
geomap_default_baselayer = `{
|
geomap_default_baselayer = `{
|
||||||
"type": "esri-xyz",
|
"type": "esri-xyz",
|
||||||
@@ -319,6 +593,9 @@ geomap_default_baselayer = `{
|
|||||||
}`
|
}`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{< /tab-content >}}
|
||||||
|
{{< /tabs >}}
|
||||||
|
|
||||||
- **osm-standard** loads the OpenStreetMap tile server. There are no additional configurations needed and the `config` fields can be left blank. Here is an example:
|
- **osm-standard** loads the OpenStreetMap tile server. There are no additional configurations needed and the `config` fields can be left blank. Here is an example:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
@@ -342,343 +619,57 @@ default_baselayer_config = `{
|
|||||||
|
|
||||||
`enable_custom_baselayers` allows you to enable or disable custom open source base maps that are already implemented. The default is `true`.
|
`enable_custom_baselayers` allows you to enable or disable custom open source base maps that are already implemented. The default is `true`.
|
||||||
|
|
||||||
## Markers layer
|
### Map controls options
|
||||||
|
|
||||||
The markers layer allows you to display data points as different marker shapes such as circles, squares, triangles, stars, and more.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
{{< figure src="/media/docs/grafana/panels-visualizations/geomap-markers-options-11-1-0.png" max-width="350px" alt="Markers layer options" >}}
|
|
||||||
|
|
||||||
- **Data** and **Location mode** configure the data settings for the layer. For more information, refer to [Data](#data) and [Location mode](#location-mode).
|
|
||||||
- **Size** configures the size of the markers. The default is `Fixed size`, which makes all marker sizes the same regardless of the data; however, there is also an option to size the markers based on data corresponding to a selected field. `Min` and `Max` marker sizes have to be set such that the markers can scale within this range.
|
|
||||||
- **Symbol** allows you to choose the symbol, icon, or graphic to aid in providing additional visual context to your data. Choose from assets that are included with Grafana such as simple symbols or the Unicon library. You can also specify a URL containing an image asset. The image must be a scalable vector graphic (SVG).
|
|
||||||
- **Symbol Vertical Align** configures the vertical alignment of the symbol relative to the data point. Note that the symbol's rotation angle is applied first around the data point, then the vertical alignment is applied relative to the rotation of the symbol.
|
|
||||||
- **Symbol Horizontal Align** configures the horizontal alignment of the symbol relative to the data point. Note that the symbol's rotation angle is applied first around the data point, then the horizontal alignment is applied relative to the rotation of the symbol.
|
|
||||||
- **Color** configures the color of the markers. The default `Fixed color` sets all markers to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section.
|
|
||||||
- **Fill opacity** configures the transparency of each marker.
|
|
||||||
- **Rotation angle** configures the rotation angle of each marker. The default is `Fixed value`, which makes all markers rotate to the same angle regardless of the data; however, there is also an option to set the rotation of the markers based on data corresponding to a selected field.
|
|
||||||
- **Text label** configures a text label for each marker.
|
|
||||||
- **Show legend** allows you to toggle the legend for the layer.
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
## Heatmap layer
|
|
||||||
|
|
||||||
The heatmap layer clusters various data points to visualize locations with different densities.
|
|
||||||
To add a heatmap layer:
|
|
||||||
|
|
||||||
Click on the drop-down menu under Data Layer and choose `Heatmap`.
|
|
||||||
|
|
||||||
Similar to `Markers`, you are prompted with various options to determine which data points to visualize and how you want to visualize them.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
{{< figure src="/media/docs/grafana/panels-visualizations/geomap-heatmap-options-11-1-0.png" max-width="350px" alt="Heatmap layer options" >}}
|
|
||||||
|
|
||||||
- **Data** and **Location mode** configure the data settings for the layer. For more information, refer to [Data](#data) and [Location mode](#location-mode).
|
|
||||||
- **Weight values** configure the intensity of the heatmap clusters. `Fixed value` keeps a constant weight value throughout all data points. This value should be in the range of 0~1. Similar to Markers, there is an alternate option in the drop-down to automatically scale the weight values depending on data values.
|
|
||||||
- **Radius** configures the size of the heatmap clusters.
|
|
||||||
- **Blur** configures the amount of blur on each cluster.
|
|
||||||
- **Opacity** configures the opacity of each cluster.
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
## GeoJSON layer
|
|
||||||
|
|
||||||
The GeoJSON layer allows you to select and load a static GeoJSON file from the filesystem.
|
|
||||||
|
|
||||||
- **GeoJSON URL** provides a choice of GeoJSON files that ship with Grafana.
|
|
||||||
- **Default Style** controls which styles to apply when no rules above match.
|
|
||||||
- **Color** configures the color of the default style
|
|
||||||
- **Opacity** configures the default opacity
|
|
||||||
- **Style Rules** apply styles based on feature properties
|
|
||||||
- **Rule** allows you to select a _feature_, _condition_, and _value_ from the GeoJSON file in order to define a rule. The trash bin icon can be used to delete the current rule.
|
|
||||||
- **Color** configures the color of the style for the current rule
|
|
||||||
- **Opacity** configures the transparency level for the current rule
|
|
||||||
- **Add style rule** creates additional style rules.
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
|
||||||
Styles can be set within the "properties" object of the GeoJSON with support for the following geometries:
|
|
||||||
|
|
||||||
- Polygon, MultiPolygon
|
|
||||||
|
|
||||||
- **"fill"** - The color of the interior of the polygon(s)
|
|
||||||
- **"fill-opacity"** - The opacity of the interior of the polygon(s)
|
|
||||||
- **"stroke-width"** - The width of the line component of the polygon(s)
|
|
||||||
|
|
||||||
- Point, MultiPoint
|
|
||||||
|
|
||||||
- **"marker-color"** - The color of the point(s)
|
|
||||||
- **"marker-size"** - The size of the point(s)
|
|
||||||
|
|
||||||
- LineString, MultiLineString
|
|
||||||
- **"stroke"** - The color of the line(s)
|
|
||||||
- **"stroke-width"** - The width of the line(s)
|
|
||||||
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
## Night / Day layer
|
|
||||||
|
|
||||||
The Night / Day layer displays night and day regions based on the current time range.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-day-night-9-1-0.png" max-width="1200px" caption="Geomap panel Night / Day" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Data** configures the data set for the layer. For more information, refer to [Data](#data).
|
|
||||||
- **Show** toggles the time source from panel time range.
|
|
||||||
- **Night region color** picks the color for the night region.
|
|
||||||
- **Display sun** toggles the sun icon.
|
|
||||||
- **Opacity** set the opacity from `0` (transparent) to `1` (opaque).
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-day-night-options-9-1-0.png" max-width="1200px" caption="Geomap panel Night / Day options" >}}
|
|
||||||
|
|
||||||
### More information
|
|
||||||
|
|
||||||
- [**Extensions for OpenLayers - DayNight**](https://viglino.github.io/ol-ext/examples/layer/map.daynight.html)
|
|
||||||
|
|
||||||
## Route layer (Beta)
|
|
||||||
|
|
||||||
{{% admonition type="caution" %}}
|
|
||||||
The Route layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
The Route layer renders data points as a route.
|
|
||||||
|
|
||||||
{{< figure src="/media/docs/grafana/geomap-route-layer-basic-9-4-0.png" max-width="1200px" caption="Geomap panel Route" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Data** and **Location mode** configure the data settings for the layer. For more information, refer to [Data](#data) and [Location mode](#location-mode).
|
|
||||||
- **Size** sets the route thickness. Fixed value by default. When field data is selected you can set the Min and Max range in which field data can scale.
|
|
||||||
- **Color** sets the route color. Set to `Fixed color` by default. You can also tie the color to field data.
|
|
||||||
- **Fill opacity** configures the opacity of the route.
|
|
||||||
- **Text label** configures a text label for each route.
|
|
||||||
- **Arrow** sets the arrow styling to display along route, in order of data.
|
|
||||||
- **None**
|
|
||||||
- **Forward**
|
|
||||||
- **Reverse**
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
{{< figure src="/media/docs/grafana/geomap-route-layer-arrow-size-9-4-0.png" max-width="1200px" caption="Geomap panel Route arrows with size" >}}
|
|
||||||
|
|
||||||
### More information
|
|
||||||
|
|
||||||
- [**Extensions for OpenLayers - Flow Line Style**](http://viglino.github.io/ol-ext/examples/style/map.style.gpxline.html)
|
|
||||||
|
|
||||||
## Photos layer (Beta)
|
|
||||||
|
|
||||||
{{% admonition type="caution" %}}
|
|
||||||
The Photos layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
The Photos layer renders a photo at each data point.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-photos-9-3-0.png" max-width="1200px" caption="Geomap panel Photos" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Data** and **Location mode** configure the data settings for the layer. For more information, refer to [Data](#data) and [Location mode](#location-mode).
|
|
||||||
- **Image Source field** allows you to select a string field containing image data in either of the following formats:
|
|
||||||
- **Image URLs**
|
|
||||||
- **Base64 encoded** - Image binary ("data:image/png;base64,...")
|
|
||||||
- **Kind** sets the frame style around the images. Choose from:
|
|
||||||
- **Square**
|
|
||||||
- **Circle**
|
|
||||||
- **Anchored**
|
|
||||||
- **Folio**
|
|
||||||
- **Crop** toggles whether the images are cropped to fit.
|
|
||||||
- **Shadow** toggles a box shadow behind the images.
|
|
||||||
- **Border** sets the border size around images.
|
|
||||||
- **Border color** sets the border color around images.
|
|
||||||
- **Radius** sets the overall size of images in pixels.
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-photos-options-9-3-0.png" max-width="1200px" caption="Geomap panel Photos options" >}}
|
|
||||||
|
|
||||||
### More information
|
|
||||||
|
|
||||||
- [**Extensions for OpenLayers - Image Photo Style**](http://viglino.github.io/ol-ext/examples/style/map.style.photo.html)
|
|
||||||
|
|
||||||
## Network layer (Beta)
|
|
||||||
|
|
||||||
{{% admonition type="caution" %}}
|
|
||||||
The Network layer is currently in [public preview](/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
The Network layer renders a network graph. This layer supports the same [data format supported by the node graph visualization](ref:data-format) with the addition of [geospatial data](#location-mode) included in the nodes data. The geospatial data is used to locate and render the nodes on the map.
|
|
||||||
|
|
||||||
{{< figure src="/media/docs/grafana/screenshot-grafana-10-1-geomap-network-layer-v2.png" max-width="750px" caption="Geomap network layer" >}}
|
|
||||||
{{< video-embed src="/media/docs/grafana/screen-recording-10-1-geomap-network-layer-from-node-graph.mp4" max-width="750px" caption="Node graph to Geomap network layer" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Data** and **Location mode** configure the data settings for the layer. For more information, refer to [Data](#data) and [Location mode](#location-mode).
|
|
||||||
- **Arrow** sets the arrow direction to display for each edge, with forward meaning source to target. Choose from:
|
|
||||||
- **None**
|
|
||||||
- **Forward**
|
|
||||||
- **Reverse**
|
|
||||||
- **Both**
|
|
||||||
- **Show legend** allows you to toggle the legend for the layer. **Note:** The legend currently only supports node data.
|
|
||||||
- **Display tooltip** allows you to toggle tooltips for the layer.
|
|
||||||
|
|
||||||
#### Node styles
|
|
||||||
|
|
||||||
- **Size** configures the size of the nodes. The default is `Fixed size`, which makes all node sizes the same regardless of the data; however, there is also an option to size the nodes based on data corresponding to a selected field. `Min` and `Max` node sizes have to be set such that the nodes can scale within this range.
|
|
||||||
- **Symbol** allows you to choose the symbol, icon, or graphic to aid in providing additional visual context to your data. Choose from assets that are included with Grafana such as simple symbols or the Unicon library. You can also specify a URL containing an image asset. The image must be a scalable vector graphic (SVG).
|
|
||||||
- **Color** configures the color of the nodes. The default `Fixed color` sets all nodes to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section.
|
|
||||||
- **Fill opacity** configures the transparency of each node.
|
|
||||||
- **Rotation angle** configures the rotation angle of each node. The default is `Fixed value`, which makes all nodes rotate to the same angle regardless of the data; however, there is also an option to set the rotation of the nodes based on data corresponding to a selected field.
|
|
||||||
- **Text label** configures a text label for each node.
|
|
||||||
|
|
||||||
#### Edge styles
|
|
||||||
|
|
||||||
- **Size** configures the line width of the edges. The default is `Fixed size`, which makes all edge line widths the same regardless of the data; however, there is also an option to size the edges based on data corresponding to a selected field. `Min` and `Max` eges sizes have to be set such that the edges can scale within this range.
|
|
||||||
- **Color** configures the color of the edges. The default `Fixed color` sets all edges to a specific color. There is also an option to have conditional colors depending on the selected field data point values and the color scheme set in the `Standard options` section.
|
|
||||||
- **Fill opacity** configures the transparency of each edge.
|
|
||||||
- **Text label** configures a text label for each edge.
|
|
||||||
|
|
||||||
## CARTO layer
|
|
||||||
|
|
||||||
A CARTO layer is from CARTO Raster basemaps.
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Theme**
|
|
||||||
- Auto
|
|
||||||
- Light
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-carto-light-9-1-0.png" max-width="1200px" caption="Geomap panel CARTO light example" >}}
|
|
||||||
- Dark
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-carto-dark-9-1-0.png" max-width="1200px" caption="Geomap panel CARTO dark example" >}}
|
|
||||||
- **Show labels** shows the Country details on top of the map.
|
|
||||||
- **Opacity** from 0 (transparent) to 1 (opaque)
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-carto-options-9-1-0.png" max-width="1200px" caption="Geomap panel CARTO options" >}}
|
|
||||||
|
|
||||||
### More Information
|
|
||||||
|
|
||||||
- [**About CARTO**](https://carto.com/about-us/)
|
|
||||||
|
|
||||||
## XYZ tile layer
|
|
||||||
|
|
||||||
The XYZ tile layer is a map from a generic tile layer.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-xyz-9-1-0.png" max-width="1200px" caption="Geomap panel xyz example" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **URL template**
|
|
||||||
|
|
||||||
> **Note:** Set a valid tile server url, with {z}/{x}/{y} for example: https://tile.openstreetmap.org/{z}/{x}/{y}.png
|
|
||||||
|
|
||||||
- **Attribution** sets the reference string for the layer if displayed in [map controls](#show-attribution)
|
|
||||||
- **Opacity** from 0 (transparent) to 1 (opaque)
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-xyz-options-9-1-0.png" max-width="1200px" caption="Geomap panel xyz options" >}}
|
|
||||||
|
|
||||||
### More information
|
|
||||||
|
|
||||||
- [**Tiled Web Map Wikipedia**](https://en.wikipedia.org/wiki/Tiled_web_map)
|
|
||||||
- [**List of Open Street Map Tile Servers**](https://wiki.openstreetmap.org/wiki/Tile_servers)
|
|
||||||
|
|
||||||
## Open Street Map layer
|
|
||||||
|
|
||||||
A map from a collaborative free geographic world database.
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-osm-9-1-0.png" max-width="1200px" caption="Geomap panel Open Street Map" >}}
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Opacity** from 0 (transparent) to 1 (opaque)
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-osm-options-9-1-0.png" max-width="1200px" caption="Geomap panel Open Street Map options" >}}
|
|
||||||
|
|
||||||
### More Information
|
|
||||||
|
|
||||||
- [**About Open Street Map**](https://www.openstreetmap.org/about)
|
|
||||||
|
|
||||||
## ArcGIS layer
|
|
||||||
|
|
||||||
An ArcGIS layer is a layer from an ESRI ArcGIS MapServer.
|
|
||||||
|
|
||||||
### Options
|
|
||||||
|
|
||||||
- **Server Instance** to select the map type.
|
|
||||||
- World Street Map
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wsm-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS World Street Map" >}}
|
|
||||||
- World Imagery
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wi-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS World Imagery" >}}
|
|
||||||
- World Physical
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-wp-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS World Physical" >}}
|
|
||||||
- Topographic
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-topographic-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS Topographic" >}}
|
|
||||||
- USA Topographic
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-usa-topographic-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS USA Topographic" >}}
|
|
||||||
- World Ocean
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-ocean-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS World Ocean" >}}
|
|
||||||
- Custom MapServer (see [XYZ](#xyz-tile-layer) for formatting)
|
|
||||||
- URL template
|
|
||||||
- Attribution
|
|
||||||
- **Opacity** from 0 (transparent) to 1 (opaque)
|
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-arcgis-options-9-1-0.png" max-width="1200px" caption="Geomap panel ArcGIS options" >}}
|
|
||||||
|
|
||||||
### More Information
|
|
||||||
|
|
||||||
- [**ArcGIS Services**](https://services.arcgisonline.com/arcgis/rest/services)
|
|
||||||
- [**About ESRI**](https://www.esri.com/en-us/about/about-esri/overview)
|
|
||||||
|
|
||||||
## Map Controls
|
|
||||||
|
|
||||||
The map controls section contains various options for map information and tool overlays.
|
The map controls section contains various options for map information and tool overlays.
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-9-1-0.png" max-width="1200px" caption="Geomap panel map controls" >}}
|
|
||||||
|
|
||||||
### Zoom
|
<!-- prettier-ignore-start -->
|
||||||
|
| Option | Description |
|
||||||
This section describes each of the zoom controls.
|
| ------ | ----------- |
|
||||||
|
| [Show zoom control](#show-zoom-control) | Displays zoom controls in the upper left corner. |
|
||||||
|
| [Mouse wheel zoom](#mouse-wheel-zoom) | Enables the mouse wheel to be used for zooming in or out. |
|
||||||
|
| [Show attribution](#show-attribution) | Displays attribution for basemap layers. |
|
||||||
|
| [Show scale](#show-scale) | Displays scale information in the bottom left corner in meters (m) or kilometers (km). |
|
||||||
|
| [Show measure tools](#show-measure-tools) | Displays measure tools in the upper right corner. This includes the [Length](#length) and [Area](#area) options. |
|
||||||
|
| [Show debug](#show-debug) | Displays debug information in the upper right corner. |
|
||||||
|
| [Tooltip](#tooltip) | Controls display of tooltips. |
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
#### Show zoom control
|
#### Show zoom control
|
||||||
|
|
||||||
Displays zoom controls in the upper left corner. This control can be useful when using systems that don't have a mouse.
|
Displays zoom controls in the upper left corner. This control can be useful when using systems that don't have a mouse.
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-zoom-9-1-0.png" max-width="1200px" caption="Geomap panel zoom" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-zoom-9-1-0.png" max-width="1200px" alt="Geomap panel zoom" >}}
|
||||||
|
|
||||||
#### Mouse wheel zoom
|
#### Mouse wheel zoom
|
||||||
|
|
||||||
Enables the mouse wheel to be used for zooming in or out.
|
Enables the mouse wheel to be used for zooming in or out.
|
||||||
|
|
||||||
### Show attribution
|
#### Show attribution
|
||||||
|
|
||||||
Displays attribution for basemap layers.
|
Displays attribution for basemap layers.
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-attribution-9-1-0.png" max-width="1200px" caption="Geomap panel attribution" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-attribution-9-1-0.png" max-width="1200px" alt="Geomap panel attribution" >}}
|
||||||
|
|
||||||
### Show scale
|
#### Show scale
|
||||||
|
|
||||||
Displays scale information in the bottom left corner.
|
Displays scale information in the bottom left corner in meters (m) or kilometers (km).
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-scale-9-1-0.png" max-width="1200px" caption="Geomap panel scale" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-scale-9-1-0.png" max-width="1200px" alt="Geomap panel scale" >}}
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
#### Show measure tools
|
||||||
Currently only displays units in [m]/[km].
|
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
### Show measure tools
|
|
||||||
|
|
||||||
Displays measure tools in the upper right corner. Measurements appear only when this control is open.
|
Displays measure tools in the upper right corner. Measurements appear only when this control is open.
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-9-1-0.png" max-width="1200px" caption="Geomap panel measure" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-9-1-0.png" max-width="1200px" alt="Geomap panel measure" >}}
|
||||||
|
|
||||||
- **Click** to start measuring
|
- **Click** to start measuring
|
||||||
- **Continue clicking** to continue measurement
|
- **Continue clicking** to continue measurement
|
||||||
- **Double-click** to end measurement
|
- **Double-click** to end measurement
|
||||||
|
|
||||||
{{% admonition type="note" %}}
|
|
||||||
When you change measurement type or units, the previous measurement is removed from the map. If the control is closed and then re-opened, the most recent measurement is displayed. A measurement can be modified by clicking and dragging on it.
|
When you change measurement type or units, the previous measurement is removed from the map. If the control is closed and then re-opened, the most recent measurement is displayed. A measurement can be modified by clicking and dragging on it.
|
||||||
{{% /admonition %}}
|
|
||||||
|
|
||||||
#### Length
|
##### Length
|
||||||
|
|
||||||
Get the spherical length of a geometry. This length is the sum of the great circle distances between coordinates. For multi-part geometries, the length is the sum of the length of each part. Geometries are assumed to be in 'EPSG:3857'.
|
Get the spherical length of a geometry. This length is the sum of the great circle distances between coordinates. For multi-part geometries, the length is the sum of the length of each part. Geometries are assumed to be in 'EPSG:3857'.
|
||||||
|
|
||||||
@@ -687,9 +678,9 @@ Get the spherical length of a geometry. This length is the sum of the great circ
|
|||||||
- **Miles (mi)**
|
- **Miles (mi)**
|
||||||
- **Nautical miles (nmi)**
|
- **Nautical miles (nmi)**
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-length-9-1-0.png" max-width="1200px" caption="Geomap panel measure length" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-length-9-1-0.png" max-width="1200px" alt="Geomap panel measure length" >}}
|
||||||
|
|
||||||
#### Area
|
##### Area
|
||||||
|
|
||||||
Get the spherical area of a geometry. This area is calculated assuming that polygon edges are segments of great circles on a sphere. Geometries are assumed to be in 'EPSG:3857'.
|
Get the spherical area of a geometry. This area is calculated assuming that polygon edges are segments of great circles on a sphere. Geometries are assumed to be in 'EPSG:3857'.
|
||||||
|
|
||||||
@@ -700,38 +691,38 @@ Get the spherical area of a geometry. This area is calculated assuming that poly
|
|||||||
- **Acres (acre)**
|
- **Acres (acre)**
|
||||||
- **Hectare (ha)**
|
- **Hectare (ha)**
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-area-9-1-0.png" max-width="1200px" caption="Geomap panel measure area" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-measure-area-9-1-0.png" max-width="1200px" alt="Geomap panel measure area" >}}
|
||||||
|
|
||||||
### Show debug
|
#### Show debug
|
||||||
|
|
||||||
Displays debug information in the upper right corner. This can be useful for debugging or validating a data source.
|
Displays debug information in the upper right corner. This can be useful for debugging or validating a data source.
|
||||||
|
|
||||||
- **Zoom** displays current zoom level of the map.
|
- **Zoom** displays current zoom level of the map.
|
||||||
- **Center** displays the current **longitude**, **latitude** of the map center.
|
- **Center** displays the current **longitude**, **latitude** of the map center.
|
||||||
|
|
||||||
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-debug-9-1-0.png" max-width="1200px" caption="Geomap panel debug" >}}
|
{{< figure src="/static/img/docs/geomap-panel/geomap-map-controls-debug-9-1-0.png" max-width="1200px" alt="Geomap panel debug" >}}
|
||||||
|
|
||||||
### Tooltip
|
#### Tooltip
|
||||||
|
|
||||||
- **None** displays tooltips only when a data point is clicked.
|
- **None** displays tooltips only when a data point is clicked.
|
||||||
- **Details** displays tooltips when a mouse pointer hovers over a data point.
|
- **Details** displays tooltips when a mouse pointer hovers over a data point.
|
||||||
|
|
||||||
## Standard options
|
### Standard options
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/standard-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/standard-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|
||||||
## Data links
|
### Data links
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/datalink-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/datalink-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|
||||||
## Value mappings
|
### Value mappings
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/value-mappings-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/value-mappings-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|
||||||
## Thresholds
|
### Thresholds
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/thresholds-options-2.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/thresholds-options-2.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|
||||||
## Field overrides
|
### Field overrides
|
||||||
|
|
||||||
{{< docs/shared lookup="visualizations/overrides-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
{{< docs/shared lookup="visualizations/overrides-options.md" source="grafana" version="<GRAFANA_VERSION>" >}}
|
||||||
|
|||||||
Reference in New Issue
Block a user