Repository navigation
Description
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
- Start RustGIS and open the World Atlas sample.
- 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 itOSM-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). - The layer draws on the map and lists in the Layers pane as
OSM-WMS · overlay. - Type
OSMin 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. - For contrast,
OSMin 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.
Additional notes (code pointers)
crates/engine/src/cmd/search.rs—search()(lines 78-91) matchesmap().layersand
map().bookmarksonly;map().tilesis never read (the file contains notilesreference).
Hit/Hit::to_json()(lines 31-48) areCoordinate | Layer | Bookmark | Feature— there is
no tile variant — andgo_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 asmap.setTilesuses) produced from
map.tiles; ago_toarm reusingmap.zoomToTiles' bounds logic; asearchboxrow with the
tile icon and the· overlaysuffix;to_jsonwithkind: "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