mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
@@ -718,7 +718,7 @@ export function rendererMap(context) {
|
||||
if (!isFinite(extent.area())) return;
|
||||
|
||||
var z2 = map.trimmedExtentZoom(extent);
|
||||
zoomLimits = zoomLimits || [context.minEditableZoom(), 24];
|
||||
zoomLimits = zoomLimits || [context.minEditableZoom(), 19];
|
||||
map.centerZoom(extent.center(), Math.min(Math.max(z2, zoomLimits[0]), zoomLimits[1]));
|
||||
};
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ export function uiFeatureList(context) {
|
||||
function click(d) {
|
||||
d3_event.preventDefault();
|
||||
if (d.location) {
|
||||
context.map().centerZoom([d.location[1], d.location[0]], 20);
|
||||
context.map().centerZoom([d.location[1], d.location[0]], 19);
|
||||
}
|
||||
else if (d.entity) {
|
||||
if (d.entity.type === 'node') {
|
||||
|
||||
Reference in New Issue
Block a user