Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Search source added
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresKasekamp committed Dec 20, 2023
1 parent ba42fc6 commit 7396da2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ require([
* Initialize the Search Widget
**************************************/
const customSearchSource = initSearch.setupCustomSearchSource();
const searchWidget = initSearch.setupSearchWidget(view, customSearchSource);
view.ui.add(searchWidget, "bottom-right");
initSearch.setupSearchWidget(view, customSearchSource);

/**************************************
* Daylight tool
Expand Down
13 changes: 10 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@

<calcite-shell content-behind id="calcite-shell">

<h2 id="header-title" slot="header">
Maa-amet 3D
</h2>
<div slot="header" id="header">
<h2 id="header-title">
Maa-amet 3D
</h2>
<div id="in-ads-container"></div>
</div>





<calcite-shell-panel slot="panel-start" display-mode="float">

Expand Down
1 change: 1 addition & 0 deletions modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ define([
view: view,
sources: [sources],
includeDefaultSources: false,
container: "in-ads-container",
}),
}));
13 changes: 12 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ body {
display: flex;
}

#header {
display: flex;
justify-content: space-between;
align-items: center;
}

#header-title {
margin-left: 1rem;
margin-right: 1rem;
Expand Down Expand Up @@ -180,4 +186,9 @@ img {
padding: 0.25em;
//margin-left: 0.5em;
//margin-right: 0.5em;
}
}

#in-ads-container {
margin-left: 1rem;
margin-right: 1rem;
}

0 comments on commit 7396da2

Please sign in to comment.