Skip to content

Commit 0138eae

Browse files
authored
Add longitudinal profile plugin (#2089)
1 parent 44884bf commit 0138eae

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

geonode_mapstore_client/client/js/components/ViewerLayout/ViewerLayout.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function ViewerLayout({
4747
{leftColumn}
4848
</div>
4949
<div
50+
id="container" // needed for longitudinal profile dropdown
5051
className="gn-viewer-layout-center"
5152
style={{
5253
flex: 1,

geonode_mapstore_client/client/themes/geonode/less/ms-theme.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,4 +406,15 @@ div#mapstore-globalspinner {
406406
display: none;
407407
}
408408
}
409+
}
410+
411+
// this dropdown is not visible in some cases
412+
// reducing font size and margin to ensure full visibility
413+
#longitudinal-tool ~ ul {
414+
font-size: @font-size-sm;
415+
margin: 0;
416+
padding: 0;
417+
.divider {
418+
margin: 0.25rem 0;
419+
}
409420
}

geonode_mapstore_client/static/mapstore/configs/pluginsConfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,13 @@
507507
"SidebarMenu"
508508
]
509509
},
510+
{
511+
"name": "LongitudinalProfileTool",
512+
"glyph": "1-line",
513+
"title": "plugins.LongitudinalProfileTool.title",
514+
"description": "plugins.LongitudinalProfileTool.description",
515+
"dependencies": ["SidebarMenu"]
516+
},
510517
{
511518
"name": "GeoProcessing",
512519
"glyph": "globe-settings",

0 commit comments

Comments
 (0)