Skip to content

Commit

Permalink
geosolutions-it#10167: Set OL as default mapType also for 2D map in m…
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudadel54 authored May 16, 2024
1 parent db4d9a4 commit 94637b8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 33 deletions.
71 changes: 39 additions & 32 deletions web/client/themes/default/less/ol.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,35 +121,51 @@
font-size: 11px;
}
}

div.ol-scale-line.ol-unselectable {
border-width: 2px;
border-style: solid;
border-top: none;
line-height: 1.0;
border-radius: 0;
right: 10px;
padding: 2px 5px 1px;
white-space: nowrap;
overflow: hidden;
-moz-box-sizing: content-box;
box-sizing: content-box;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
top: 10px;
position: relative;
.ol-scale-line.ol-unselectable {
bottom: 35px;
right: 55px;
left: auto;
top: auto;
}
.mapstore-map-footer{
div.ol-scale-line.ol-unselectable {
border-width: 2px;
border-style: solid;
border-top: none;
line-height: 1.0;
border-radius: 0;
right: 10px;
padding: 2px 5px 1px;
white-space: nowrap;
overflow: hidden;
-moz-box-sizing: content-box;
box-sizing: content-box;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
top: 10px;
position: relative;
}
div.ol-scale-line-inner {
border: 0;
border-top: 0;
font-size: 11px;
text-align: center;
margin: 0;
}

.ol-scale-line.ol-unselectable {
right: 58px;
left: auto;
bottom: 3px;
}

.ol-scale-line {
background-color: transparent !important;
}
}
.ol-attribution ul {
text-shadow: none;
}

div.ol-scale-line-inner {
border: 0;
border-top: 0;
font-size: 11px;
text-align: center;
margin: 0;
}

.ol-custom-overviewmap,
.ol-custom-overviewmap.ol-uncollapsible {
Expand All @@ -159,15 +175,6 @@ div.ol-scale-line-inner {
top: auto !important;
}

.ol-scale-line.ol-unselectable {
right: 58px;
left: auto;
bottom: 3px;
}

.ol-scale-line {
background-color: transparent !important;
}

.ol-viewport {
.ol-overlay-container.ol-selectable {
Expand Down
2 changes: 1 addition & 1 deletion web/client/utils/MapTypeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const mapLibrariesConfiguration = {

const DEFAULT_VISUALIZATION_MODES_CONFIG = {
[VisualizationModes._2D]: {
mobile: MapLibraries.LEAFLET,
mobile: MapLibraries.OPENLAYERS,
desktop: MapLibraries.OPENLAYERS
},
[VisualizationModes._3D]: {
Expand Down

0 comments on commit 94637b8

Please sign in to comment.