Skip to content

Commit

Permalink
Adjustments for WMTS viewer to align with the latest Leaflet
Browse files Browse the repository at this point in the history
  • Loading branch information
u10313335 authored and amercader committed Aug 12, 2024
1 parent 34f0d20 commit 7c1a4f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
32 changes: 5 additions & 27 deletions ckanext/geoview/public/css/wmts_preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,20 @@ html, body {
height: 100%;
}

#map .table{
width: 300px;
}

#map label {
font-weight: normal;
}

#map label:after {
content: none;
}

#map input {
width: auto;
top: auto;
}

.leaflet-control-layers {
box-shadow: 0 1px 7px rgba(0,0,0,0.4);
background: #f8f8f9;
-webkit-border-radius: 5px;
border-radius: 5px;
overflow: auto;
max-height: 200px;
overflow-y: hidden;
}

.ui-opacity {
box-shadow: 0 0 8px rgba(0,0,0,0.4);
background: rgba(255, 255, 255, 0.8);
position: absolute;
left: 13px;
top: 70px;
left: 14px;
top: 80px;
height: 200px;
width: 22px;
border: 1px solid #888;
border-radius: 5px;
border: 2px solid rgba(0, 0, 0, 0.2);
border-radius: 4px;
z-index: 1000;
}

Expand Down
2 changes: 1 addition & 1 deletion ckanext/geoview/public/js/wmts_preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ckan.module('wmtspreview', function (jQuery, _) {
L.DomEvent.disableClickPropagation(container);

// Opacity control for desktop
if (!L.Browser.touch) {
if (!L.Browser.mobile) {
var outer = $('<div id="control" class="ui-opacity">');
var inner = $('<div id="handle" class="handle">');
var start = false;
Expand Down

0 comments on commit 7c1a4f1

Please sign in to comment.