Skip to content

Commit de687ed

Browse files
committed
Upgrade to maplibre-adiff-viewer v1.3.0
1 parent 8b27994 commit de687ed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/osmcha/osmcha-frontend/issues"
1414
},
1515
"dependencies": {
16-
"@osmcha/maplibre-adiff-viewer": "^1.2.1",
16+
"@osmcha/maplibre-adiff-viewer": "^1.3.0",
1717
"@osmcha/osm-adiff-parser": "^3.0.0",
1818
"@turf/area": "^7.1.0",
1919
"@turf/bbox": "^7.1.0",

src/views/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class CMap extends React.PureComponent {
158158
if (adiff.actions.length > 0) {
159159
map.jumpTo(
160160
map.cameraForBounds(adiffViewer.bounds(), {
161-
padding: 50,
161+
padding: 200,
162162
maxZoom: 18
163163
})
164164
);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,10 +2098,10 @@
20982098
"@nodelib/fs.scandir" "2.1.5"
20992099
fastq "^1.6.0"
21002100

2101-
"@osmcha/maplibre-adiff-viewer@^1.2.1":
2102-
version "1.2.1"
2103-
resolved "https://registry.yarnpkg.com/@osmcha/maplibre-adiff-viewer/-/maplibre-adiff-viewer-1.2.1.tgz#a7eabb5f28e138ce6efe547e88e283649624fba2"
2104-
integrity sha512-DR6zRcUHbyvfSI+/C+HTtqxWv8ginzZ2/A0WVsG/rMd9cED9CdZ3jHTKj1agfHDQcDBdQq+Muy846TznNwPbXA==
2101+
"@osmcha/maplibre-adiff-viewer@^1.3.0":
2102+
version "1.3.0"
2103+
resolved "https://registry.yarnpkg.com/@osmcha/maplibre-adiff-viewer/-/maplibre-adiff-viewer-1.3.0.tgz#cb0bb7b5ef4d8794ffd1441e278cb352a6f0bc34"
2104+
integrity sha512-lC+P9WpZdK/IbvspYMpKzY+TKLny3HC+EC86TXKLshYeXg9e6ivXXasjdZEop1gEydWxtVFqWATaGgaHam9rUQ==
21052105
dependencies:
21062106
"@turf/bbox" "^7.2.0"
21072107
"@turf/bbox-polygon" "^7.2.0"

0 commit comments

Comments
 (0)