Search: highlight the found spot, open a waypoint's popup, full-height list
A point result (typed coordinates, a geocoded place, a waypoint) leaves a pulsing marker on the map until the next jump or a click on it. A result from a layer opens that point's popup as if clicked on the map. The panel grows to the window height so long result lists fit.
This commit is contained in:
1 parent
81e688be9b
commit
ba9c40ac3d
4 files changed
+76
-17
No files matched your search
+1
-1
@@ -571,7 +571,7 @@ gpxPanel.mount(sidebar);
|
||||
const overlaysControl = new OverlaysControl(map);
|
||||
overlaysControl.mount(sidebar);
|
||||
searchControl.setLayerOpeners({
|
||||
layers: (path) => gpxPanel.show(path),
|
||||
layers: (path, result) => gpxPanel.showFeature(path, result.bbox.slice(0, 2)),
|
||||
hiking_trails: (code) => overlaysControl.showHikingTrailsCountry(code),
|
||||
});
|
||||
pitchToggle.setOverlaysControl(overlaysControl);
|
||||
|
||||
Reference in new issue
Block a user