Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed May 29, 2019
2 parents 06fc475 + 3e50597 commit e541939
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 15 deletions.
3 changes: 0 additions & 3 deletions css/theme-bootstrap-3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/theme-bootstrap-3.css.map

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions css/theme-generic.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/theme-generic.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/indicia.datacomponents/jquery.idc.leafletMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
maxZoom: 17,
attribution: 'Map data: &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, ' +
'<a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> ' +
'(<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
'(<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA</a>)'
})
};
// Add the active base layer to the map.
Expand Down
8 changes: 7 additions & 1 deletion js/jquery.indiciaMapPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,13 @@ var destroyAllFeatures;
}
div.map.addLayer(lSwitch);
// Ensure layer inserts at correct position.
div.map.setLayerIndex(lSwitch, div.map.getLayerIndex(div.map.baseLayer));
if ($.isArray(availableLayers[id])) {
//For dynamic layers, search for the default layer - index 0 - and use that
//for the insertion position
div.map.setLayerIndex(lSwitch, div.map.getLayerIndex(div.map.getLayersBy('layerId', availableLayers[id][0]().layerId)[0]));
} else {
div.map.setLayerIndex(lSwitch, div.map.getLayerIndex(div.map.baseLayer));
}
}
}
if (lSwitch && div.map.getExtent()) {
Expand Down
3 changes: 2 additions & 1 deletion js/jquery.reportgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
metadata += '<div class="image-caption">' + response[0].caption + '</div>';
}
if (response[0].licence_title !== null) {
metadata += '<div class="licence"><span class="icon licence-' + response[0].licence_code.toLowerCase() + '"></span>' +
metadata += '<div class="licence">' +
'<span class="icon licence-' + response[0].licence_code.toLowerCase().replace(/ /g, '-') + '"></span>' +
response[0].licence_title +
'</div>';
}
Expand Down
4 changes: 0 additions & 4 deletions scss/common/_ol2-map.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.olMap {
.olForeignContainer {
top: 0;
position: absolute;
}
img {
border: none !important;
}
Expand Down
22 changes: 22 additions & 0 deletions scss/generic/_bootstrapify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,26 @@ $color-danger: #ff7777;
background-color: lighten($color-danger, 30%);
}
}
}

/* Data value lists */
@media (min-width: 768px) {
.dl-horizontal {
dt, dd {
line-height: 1.42;
}
dt {
font-weight: bold;
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
dd {
margin: 4px 0 4px 180px;
}
}
}

0 comments on commit e541939

Please sign in to comment.