From b238d442a6ca68591f8f2e9ab9c2576a36db52eb Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 21 Jun 2018 01:33:18 -0400 Subject: [PATCH] Adjust default zoom for points to z19 (closes #5099) --- modules/renderer/map.js | 2 +- modules/ui/feature_list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/renderer/map.js b/modules/renderer/map.js index 6b2016c8f..ef3d0c01e 100644 --- a/modules/renderer/map.js +++ b/modules/renderer/map.js @@ -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])); }; diff --git a/modules/ui/feature_list.js b/modules/ui/feature_list.js index c7ba4a233..e3974f926 100644 --- a/modules/ui/feature_list.js +++ b/modules/ui/feature_list.js @@ -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') {