# Geomap Route Layer Persists When Switching to Device Without GPS Data

**URL:** <https://community.grafana.com/t/geomap-route-layer-persists-when-switching-to-device-without-gps-data/147793>\
**Category:** Geomap Panel\
**Tags:** geomap-panel\
**Created:** [April 4, 2025, 10:28am UTC](https://community.grafana.com/t/geomap-route-layer-persists-when-switching-to-device-without-gps-data/147793 "2025-04-04T10:28:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asselmanedwin4](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@asselmanedwin4](https://community.grafana.com/u/asselmanedwin4)\
**Post date:** [April 4, 2025, 10:28am UTC](https://community.grafana.com/t/geomap-route-layer-persists-when-switching-to-device-without-gps-data/147793/1 "2025-04-04T10:28:01Z")

</div>

### What Grafana version and what operating system are you using?

Grafana v11.4.0 on Windows 11 Pro

### What are you trying to achieve?

I have a geomap with route layer enabled that displays GPS data for different devices. When I switch from a device with GPS data to another device that has no GPS data, I want the previous route to disappear. Currently, the route from the previous device remains visible, which is not the desired behavior.

### What happened?

When I select a device with no GPS data, two issues occur:

1. The route from the previously selected device remains visible on the map
2. The geomap zooms out to show the whole world view

I’ve tried modifying my queries and checking layer configurations, but the issues persist.

### Screenshots

 ![device with gps data](https://us1.discourse-cdn.com/grafana/original/3X/e/5/e5815716edff154f1888b751d01e14c7b0e893ad.png)  
 ![zoomed out with old route](https://us1.discourse-cdn.com/grafana/original/3X/2/1/2179888c022732f125688af408b87c14304274a2.png)  
 ![old route](https://us1.discourse-cdn.com/grafana/original/3X/0/3/039d18267f1252d74138bd3f46c89bca860a3a71.png)

### Additional information

- Data source: [Your data source]
- Query details: [Brief description of how you’re querying the data]
- Variable setup: [If you’re using variables to select devices]

Any help would be greatly appreciated!
