# Hiding layers in the GeoMap plugin

**URL:** <https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162>\
**Category:** Geomap Panel\
**Tags:** plugins\
**Created:** [February 20, 2023, 2:51pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162 "2023-02-20T14:51:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![chimrovav](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chimrovav](https://community.grafana.com/u/chimrovav)\
**Post date:** [February 20, 2023, 2:51pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/1 "2023-02-20T14:51:27Z")

</div>

Hello everyone!

I have configured a panel using the GeoMap plugin. Everything looks fine but would be nice to have one feature - a check button that enables or disables layers (example in the fig below).  
 ![layers](https://us1.discourse-cdn.com/grafana/original/3X/8/4/84543d8a897a2f405cea57fd9a4b9db130bfb400.png)  
Maybe there is already a feature like that or similar, but I have not found anything in the documentation. I consider that feature very useful since sometimes panels may be overwhelmed with markers and a UI, that hides some layers, helps a lot.

I am using Grafana OSS version 9.3.6.

Would be thankful for any ideas on how to reach that.

---

<div class="post-metadata">

**Author:** ![ricardolirabruxqki](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@ricardolirabruxqki](https://community.grafana.com/u/ricardolirabruxqki)\
**Post date:** [March 25, 2024, 1:04pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/2 "2024-03-25T13:04:15Z")

</div>

Same question here!

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [March 25, 2024, 2:24pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/3 "2024-03-25T14:24:53Z")

</div>

On the top right corner of geomap there is a filtering capability but not very intuitively designed

 ![Screenshot_20240325-072611_Chrome](https://us1.discourse-cdn.com/grafana/original/3X/1/2/12ce6f28fc857cc5b753634706bd8235b0ec4ab5.jpeg)

---

<div class="post-metadata">

**Author:** ![shyney7](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@shyney7](https://community.grafana.com/u/shyney7)\
**Post date:** [April 22, 2024, 9:41am UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/4 "2024-04-22T09:41:33Z")

</div>

I dont seem to have this option. I have multiple route layers to show different track colors based on different values. But there seems to be no option to hide / show the different layers for routes?  
 ![Screenshot 2024-04-22 114114](https://us1.discourse-cdn.com/grafana/original/3X/6/4/643a07f06a11a9c9177d228a31014d578af1fda7.png)

Grafana v10.4.2

---

<div class="post-metadata">

**Author:** ![deryann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/deryann/32/45730_2.png) [@deryann](https://community.grafana.com/u/deryann)\
**Post date:** [May 31, 2024, 1:31am UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/5 "2024-05-31T01:31:04Z")

</div>

My geo map doesnot have this icon on right top corner.  
Should I enable some config?

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 31, 2024, 1:31am UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/6 "2024-05-31T01:31:53Z")

</div>

what version of grafana are you on?

---

<div class="post-metadata">

**Author:** ![deryann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/deryann/32/45730_2.png) [@deryann](https://community.grafana.com/u/deryann)\
**Post date:** [May 31, 2024, 4:38am UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/7 "2024-05-31T04:38:55Z")

</div>

10.4.1  
and Grafana Cloud

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 31, 2024, 10:21am UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/8 "2024-05-31T10:21:31Z")

</div>

what datasource is being fed to your geomap?

---

<div class="post-metadata">

**Author:** ![deryann](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/deryann/32/45730_2.png) [@deryann](https://community.grafana.com/u/deryann)\
**Post date:** [May 31, 2024, 1:13pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/9 "2024-05-31T13:13:10Z")

</div>

I can use TestData data source or postgres to reproduce it.  
the following json is a sample:

```json
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 24,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "grafana-testdata-datasource",
        "uid": "f35c59ee-500f-4372-84d0-e750b0c50fab"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 18,
        "w": 18,
        "x": 5,
        "y": 0
      },
      "id": 1,
      "options": {
        "basemap": {
          "config": {},
          "name": "Layer 0",
          "type": "default"
        },
        "controls": {
          "mouseWheelZoom": true,
          "showAttribution": true,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": true
        },
        "layers": [
          {
            "config": {
              "showLegend": true,
              "style": {
                "color": {
                  "fixed": "dark-green"
                },
                "opacity": 0.4,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 5,
                  "max": 15,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "textConfig": {
                  "fontSize": 12,
                  "offsetX": 0,
                  "offsetY": 0,
                  "textAlign": "center",
                  "textBaseline": "middle"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "txg"
            },
            "location": {
              "mode": "auto"
            },
            "name": "txg",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "showLegend": true,
              "style": {
                "color": {
                  "fixed": "red"
                },
                "opacity": 0.4,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 5,
                  "max": 15,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "textConfig": {
                  "fontSize": 12,
                  "offsetX": 0,
                  "offsetY": 0,
                  "textAlign": "center",
                  "textBaseline": "middle"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "b"
            },
            "location": {
              "mode": "auto"
            },
            "name": "B",
            "tooltip": true,
            "type": "markers"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": true,
          "id": "fit",
          "lat": 0,
          "lon": 0,
          "zoom": 15
        }
      },
      "pluginVersion": "11.1.0-70958",
      "targets": [
        {
          "csvContent": "lon,lat,spot\r\n120.609832,24.133681,彩虹眷村\r\n120.696155,24.084631,Dali Art藝術廣場\r\n120.619676,24.130485,TAICHUNG新地標（筏子溪迎賓廊道）\r\n120.646461,24.178824,逢甲夜市\r\n120.683548,24.137815,宮原眼科",
          "datasource": {
            "type": "grafana-testdata-datasource",
            "uid": "f35c59ee-500f-4372-84d0-e750b0c50fab"
          },
          "refId": "txg",
          "scenarioId": "csv_content"
        },
        {
          "csvContent": "景點名稱,lat,lon\r\n鹿港老街,24.0833,120.5333\r\n成美文化園,24.0667,120.5333\r\n百果山探索樂園,24.0667,120.5167\r\n南天宮十八層地獄,24.0833,120.5833\r\n扇形車庫,24.0833,120.5667",
          "datasource": {
            "type": "grafana-testdata-datasource",
            "uid": "f35c59ee-500f-4372-84d0-e750b0c50fab"
          },
          "refId": "b",
          "scenarioId": "csv_content"
        }
      ],
      "title": "Panel Title",
      "type": "geomap"
    }
  ],
  "schemaVersion": 39,
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timeRangeUpdatedDuringEditOrView": false,
  "timepicker": {},
  "timezone": "browser",
  "title": "2 layers test",
  "uid": "bdndcoley8glcf",
  "version": 1,
  "weekStart": ""
}

```

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [May 31, 2024, 4:25pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/10 "2024-05-31T16:25:40Z")

</div>

Apologies this feature is not in geomap but in orchestra cities plugin

![image](https://us1.discourse-cdn.com/grafana/original/3X/f/5/f5a471fd5880f0e8e3c45c4abc679c9ba54364bd.png)

---

<div class="post-metadata">

**Author:** ![daemonalec](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@daemonalec](https://community.grafana.com/u/daemonalec)\
**Post date:** [March 20, 2026, 10:33pm UTC](https://community.grafana.com/t/hiding-layers-in-the-geomap-plugin/82162/11 "2026-03-20T22:33:14Z")

</div>

Agree that this would be a nice built-in feature, but at least with an SQL backend you can use one dashboard variable per layer to zero-out the query to effectively hide the layer.
