mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
don't zoom in too far when centering on a single photo
This commit is contained in:
@@ -224,7 +224,7 @@ export function svgLocalPhotos(projection, context, dispatch) {
|
||||
.reduce((a, b) => a.extend(b));
|
||||
|
||||
const map = context.map();
|
||||
map.centerZoom(extent.center(), map.trimmedExtentZoom(extent));
|
||||
map.centerZoom(extent.center(), Math.min(18, map.trimmedExtentZoom(extent)));
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user