From 0f49514fbbec7c1e94c030d35ebe80dee0bb2d2d Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Sun, 8 Jul 2018 10:27:44 -0500 Subject: [PATCH] updated: removed centering when clicking a note --- dist/locales/en.json | 4 ++-- modules/svg/notes.js | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/dist/locales/en.json b/dist/locales/en.json index d9296e4a1..d25af4491 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -6688,7 +6688,7 @@ "attribution": { "text": "Terms & Feedback" }, - "description": "DigitalGlobe-Premium is a mosaic composed of DigitalGlobe basemap with select regions filled with +Vivid or custom area of interest imagery, 50cm resolution or better, and refreshed more frequently with ongoing updates.", + "description": "Premium DigitalGlobe satellite imagery.", "name": "DigitalGlobe Premium Imagery" }, "DigitalGlobe-Premium-vintage": { @@ -6702,7 +6702,7 @@ "attribution": { "text": "Terms & Feedback" }, - "description": "DigitalGlobe-Standard is a curated set of imagery covering 86% of the earth’s landmass, with 30-60cm resolution where available, backfilled by Landsat. Average age is 2.31 years, with some areas updated 2x per year.", + "description": "Standard DigitalGlobe satellite imagery.", "name": "DigitalGlobe Standard Imagery" }, "DigitalGlobe-Standard-vintage": { diff --git a/modules/svg/notes.js b/modules/svg/notes.js index 7680dacc8..a3b2f66d0 100644 --- a/modules/svg/notes.js +++ b/modules/svg/notes.js @@ -65,13 +65,6 @@ export function svgNotes(projection, context, dispatch) { } - function click(which) { - if (context.selectedNoteID() === which.id) { - context.map().centerEase(which.loc); - } - } - - function update() { var service = getService(); var selectedID = context.selectedNoteID(); @@ -87,8 +80,7 @@ export function svgNotes(projection, context, dispatch) { // enter var notesEnter = notes.enter() .append('g') - .attr('class', function(d) { return 'note note-' + d.id + ' ' + d.status; }) - .on('click', click); + .attr('class', function(d) { return 'note note-' + d.id + ' ' + d.status; }); notesEnter .append('use')