Skip to content

Add a search control#1048

Merged
prushforth merged 2 commits into
Maps4HTML:mainfrom
prushforth:search-control
May 27, 2026
Merged

Add a search control#1048
prushforth merged 2 commits into
Maps4HTML:mainfrom
prushforth:search-control

Conversation

@prushforth
Copy link
Copy Markdown
Member

@prushforth prushforth commented May 11, 2026

Closes #1040

Related requirement #258
Related spec update
Related documentation update
Related extension update
Related experiments

prushforth and others added 2 commits May 27, 2026 14:53
Make icons a bit bolder to match the search icon which is paths of a certain width

Add disabled support to search control.  Bound to checked, but not bound to hidden.

Update linux screenshots due to bolding of zoom, reload controls to match magnifying glass search control icon boldness.
Remove now out of date win32 screenshots for same reason

Make calculation of total size of controls omit the search control mostly, for backwards compatibility

Add waitUntil: 'networkidle', increase some timeouts to de-flake some tests

Implement custom search handler. Use geoname search as example.

Add search example using geonames.org

Search panel grabs focus on mouseenter

Add localization messages for search button.
Add localization and non-Latin character search tests.

Add second search layer to index.html mapml-viewer (multiple search link handler)

Change search default
- clicking a suggestion triggers a search, navigation
- panel stays open until user dismisses it
- panel now requires 2 Esc / clicks to close it
- update broken tests

Simplify search events' API

Add HTMLMapmlViewerElement.zoomToExtent(xmin,ymin,xmax,ymax) to support documentation change for custom search handler development

De-flake a test

Update markup skills to add search controlslist token

De-flake a couple more  tests

Update win32 screen caps to account for bold control icons to match search icon boldness

Clean up
Add playwright browser caching
Prevent npm ci from installing browsers
Ignore postinstall scripts
@prushforth prushforth merged commit b0a44a2 into Maps4HTML:main May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a map search widget make it work with rel=search, rel=suggestions link templates

1 participant