Update to the import viewers

This commit is contained in:
Pieter Vander Vennet 2022-01-25 21:55:51 +01:00
parent fa179af601
commit f09134c3be
26 changed files with 303 additions and 413 deletions

View file

@ -55,8 +55,8 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
this.leafletMap.addCallbackD(leaflet => {
let bounds;
if (typeof factor === "number") {
bounds = leaflet.getBounds()
leaflet.setMaxBounds(bounds.pad(factor))
bounds = leaflet.getBounds().pad(factor)
leaflet.setMaxBounds(bounds)
} else {
// @ts-ignore
leaflet.setMaxBounds(factor.toLeaflet())
@ -99,9 +99,9 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
// @ts-ignore
L.geoJSON(data, {
style: {
color: "#f00",
weight: 2,
opacity: 0.4
color: "#f44",
weight: 4,
opacity: 0.7
}
}).addTo(leaflet)
}