Skip to content

[Bug]: Search box misses WMS/web tile overlay layers (the Layers pane and its filter find them) #809

Closed

Description

@deniial00

Before you start

  • I searched the existing issues and did not find a duplicate.
  • This is a bug report, not a usage question (questions belong in Discussions).

What happened?

A web tile overlay layer (WMS here; XYZ and WMTS behave the same) is added to the map, drawn on
the map, listed in the Layers pane as OSM-WMS · overlay, and found by the Layers pane's
Filter layers box. The search box at the foot of the left pane ("Search layers, places,
lat/lon…") never finds it: with the exact name typed, the list shows only the PLACES row — no
LAYERS group — while the Layers pane lists that very layer above it.

The Layers pane's filter and the search box disagree about what a layer is, even though both list
the same map: only vector layers and their attribute values come back from the search box.

Steps to reproduce

  1. Start RustGIS and open the World Atlas sample.
  2. Add a WMS overlay: Home › Add › Basemap, then Add Tile Layer…. Address
    https://ows.terrestris.de/osm/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=OSM-WMS&STYLES=&FORMAT=image/png&SRS=EPSG:3857&BBOX={bbox-epsg-3857}&WIDTH={width}&HEIGHT={height},
    name it OSM-WMS, tick Overlay (a transparent layer kept on top, such as labels or roads),
    Add. Any other overlay reproduces it too (a plain XYZ address, or one added from Web Data
    or a saved Connection).
  3. The layer draws on the map and lists in the Layers pane as OSM-WMS · overlay.
  4. Type OSM in the search box at the foot of the left pane → only Search places for "OSM"
    is offered. The WMS overlay is never listed, not even on its full name.
  5. For contrast, OSM in the Layers pane's own Filter layers box does list it.

Expected behavior

The search box lists a matching web tile layer as a layer hit, as the Layers pane and its filter
already do: it appears under the LAYERS group, and picking the row (or map.search with
"go": true) zooms to it — the same thing right-click Zoom To Layer on the pane's row does,
using the service's advertised bounds or, for a PMTiles archive or a COG, its header's. With no
known bounds the row should still be listed, with go reporting the existing "no bounds" error,
rather than the layer being silently absent.

The user guide already promises this: "The search box at the foot of the left pane searches
the map as you type: … the map's layers and bookmarks by name" (docs/user-guide/maps.md), and
map.search's own parameter text says "a layer, a bookmark or a value in a layer's table". Web
tile layers count as layers everywhere else: they list in the Layers pane and its filter, in the
Basemap gallery, and the AI Assistant's project listing was fixed to include them (issue #401,
the same class of omission).

How are you running RustGIS?

Desktop app (built from source)

Version

42859ba (v0.3.0 on main)

Operating system, browser and graphics

macOS 27.0.0 (Apple Silicon)

Sample data

No dataset needed: the World Atlas sample plus any public WMS/XYZ overlay reproduces it.

Screenshots or logs

Typing OSM in the search box: only a places lookup is offered, while the Layers pane lists
OSM-WMS · overlay.

Search box finding no layer for a name the Layers pane lists

Additional notes (code pointers)

  • crates/engine/src/cmd/search.rs — search() (lines 78-91) matches map().layers and
    map().bookmarks only; map().tiles is never read (the file contains no tiles reference).
    Hit / Hit::to_json() (lines 31-48) are Coordinate | Layer | Bookmark | Feature — there is
    no tile variant — and go_to() (line 186 onwards) has no tile arm.
  • crates/ui-egui/src/searchbox.rs — describe()/pick() have no tile row; the hint is
    "Search layers, places, lat/lon…" (line 155).
  • What already does it right: the Layers pane filter, crates/ui-egui/src/panes.rs:685
    (tiles.iter().filter(|(_, x)| shows(&x.name))), and the [Bug]: AI Assistant list_layers does not include WMS overlay layers #401 fix in
    crates/assistant/src/tools.rs:720-723.
  • Sketch of a fix: a Hit::Tile { index, name } (index as map.setTiles uses) produced from
    map.tiles; a go_to arm reusing map.zoomToTiles' bounds logic; a searchbox row with the
    tile icon and the · overlay suffix; to_json with kind: "tile"; a regression test beside
    cmd::search::tests::finds_layers_and_values. The docs and parameter texts already promise the
    behaviour, so they need no change.

Activity

  1. added
    unconfirmed possible issue
    bug
    and removed
    unconfirmed possible issue
    on Oct 24, 2026
  2. self-assigned this
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions