Adjust default zoom for points to z19

(closes #5099)
This commit is contained in:
Bryan Housel
2018-06-21 01:33:18 -04:00
parent 716a3f7a01
commit b238d442a6
2 changed files with 2 additions and 2 deletions

View File

@@ -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]));
};

View File

@@ -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') {