From 1a3d8a630495a1070f96caf4a6040d622d0cfdb7 Mon Sep 17 00:00:00 2001 From: Mukesh Jaiswal Date: Mon, 12 Sep 2022 16:41:30 +0200 Subject: [PATCH] Refactor: removed console log --- modules/svg/local_photos.js | 6 ------ modules/ui/sections/data_layers.js | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/svg/local_photos.js b/modules/svg/local_photos.js index ef9d6dd8a..43300b91d 100644 --- a/modules/svg/local_photos.js +++ b/modules/svg/local_photos.js @@ -82,8 +82,6 @@ export function svgLocalPhotos(projection, context, dispatch) { // puts the image markers on the map function display_markers(imageList) { - console.log('display_markers() called'); - const groups = layer.selectAll('.markers').selectAll('.viewfield-group') .data(imageList, function(d) { return d.id; }); @@ -126,8 +124,6 @@ export function svgLocalPhotos(projection, context, dispatch) { } function drawPhotos(selection) { - console.log('drawPhotos fn called'); - layer = selection.selectAll('.layer-local-photos') .data(_fileList ? [0] : []); @@ -198,7 +194,6 @@ export function svgLocalPhotos(projection, context, dispatch) { }; drawPhotos.setFile = function(fileList) { - console.log('drawPhotos.setFile called'); /** * Holds array of file - [file_1, file_2, ...] * file_1 = {name: "Das.png", lastModified: 1625064498536, lastModifiedDate: Wed Jun 30 2021 20:18:18 GMT+0530 (India Standard Time), webkitRelativePath: "", size: 859658, …} @@ -220,7 +215,6 @@ export function svgLocalPhotos(projection, context, dispatch) { * @param {Object} fileList.0 - A File - {name: "Das.png", lastModified: 1625064498536, lastModifiedDate: Wed Jun 30 2021 20:18:18 GMT+0530 (India Standard Time), webkitRelativePath: "", size: 859658, …} */ drawPhotos.fileList = function(fileList) { - console.log('drawPhotos.fileList called'); if (!arguments.length) return _fileList; _fileList = fileList; diff --git a/modules/ui/sections/data_layers.js b/modules/ui/sections/data_layers.js index 591ae1b96..929e9f247 100644 --- a/modules/ui/sections/data_layers.js +++ b/modules/ui/sections/data_layers.js @@ -436,6 +436,7 @@ export function uiSectionDataLayers(context) { d3_event.preventDefault(); d3_event.stopPropagation(); + //TODO dataLayer.fitZoom(); }) .call(svgIcon('#iD-icon-framed-dot', 'monochrome'));