updated: removed centering when clicking a note

This commit is contained in:
Thomas Hervey
2018-07-08 10:27:44 -05:00
parent 7b42743513
commit 0f49514fbb
2 changed files with 3 additions and 11 deletions

View File

@@ -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 earths 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": {

View File

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