Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2024.01.xx]: #10167: Set OL as default mapType also for 2D map in mobile (#10267) #10337

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading