Fix zoom padding
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2020-11-01 15:35:38 +01:00
parent 0a384a9196
commit d661e5f3f9
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ export class ZoomToExtentComponent implements OnChanges {
let threshold = 40 * rem;
var left = 1 * rem;
var right = 1 * rem;
var bottom = Math.round(size[1] / 2);
var bottom = Math.round((size[1] / 2) + (4*rem));
var top = 1 * rem;
if (size[0] > threshold) {
bottom = 3 * rem;
bottom = 5 * rem;
left = 23 * rem;
}
options.padding = [top, right, bottom, left];