diff --git a/demo/js/draw.js b/demo/js/draw.js index 30cf992d6..096b472fa 100755 --- a/demo/js/draw.js +++ b/demo/js/draw.js @@ -159,7 +159,20 @@ const interactiveMap = new InteractiveMap('map', { osNamesURL: process.env.OS_NAMES_URL, customDatasets: [parcelSearch, gridRefSearchETRS89], width: '300px', - showMarker: false + showMarker: false, + // Search trigger and form in the top-right on tablet/desktop (mobile keeps its defaults) + manifest: { + buttons: [{ + id: 'search', + tablet: { slot: 'top-right', showLabel: false }, + desktop: { slot: 'top-right', showLabel: false } + }], + controls: [{ + id: 'search', + tablet: { slot: 'top-right' }, + desktop: { slot: 'top-right' } + }] + } }), datasetsPlugin, createMapKeyPlugin(), diff --git a/demo/js/index.js b/demo/js/index.js index 12f806df1..8cb6bca42 100755 --- a/demo/js/index.js +++ b/demo/js/index.js @@ -309,7 +309,20 @@ const interactiveMap = new InteractiveMap('map', { customDatasets: [parcelSearch, gridRefSearchETRS89], width: '300px', showMarker: true, - showLabel: true + showLabel: true, + // Search trigger and form in the top-right on tablet/desktop (mobile keeps its defaults) + manifest: { + buttons: [{ + id: 'search', + tablet: { slot: 'top-right', showLabel: false }, + desktop: { slot: 'top-right', showLabel: false } + }], + controls: [{ + id: 'search', + tablet: { slot: 'top-right' }, + desktop: { slot: 'top-right' } + }] + } }), datasetsPlugin, createMapKeyPlugin(), diff --git a/plugins/search/src/Search.jsx b/plugins/search/src/Search.jsx index 3a76de1ca..427a3160c 100755 --- a/plugins/search/src/Search.jsx +++ b/plugins/search/src/Search.jsx @@ -84,9 +84,10 @@ export function Search ({ appConfig, iconRegistry, pluginState, pluginConfig, ap const isFormVisible = defaultExpanded || isExpanded return ( -