Fix zoomto padding
This commit is contained in:
parent
0e13b98b7f
commit
0a384a9196
@ -28,7 +28,7 @@ export class ZoomToExtentComponent implements OnChanges {
|
|||||||
var bottom = Math.round(size[1] / 2);
|
var bottom = Math.round(size[1] / 2);
|
||||||
var top = 1 * rem;
|
var top = 1 * rem;
|
||||||
if (size[0] > threshold) {
|
if (size[0] > threshold) {
|
||||||
bottom = 1 * rem;
|
bottom = 3 * rem;
|
||||||
left = 23 * rem;
|
left = 23 * rem;
|
||||||
}
|
}
|
||||||
options.padding = [top, right, bottom, left];
|
options.padding = [top, right, bottom, left];
|
||||||
|
Loading…
Reference in New Issue
Block a user