Don't allow adding point-only features as vertices

This commit is contained in:
Quincy Morgan
2019-03-04 17:04:35 -05:00
parent 5e02523396
commit b828ada0e2
9 changed files with 30 additions and 30 deletions

View File

@@ -89,7 +89,6 @@ export function uiModes(context) {
tooltipTitleID = 'modes.add_preset.' + d.geom + '.title';
}
var favoriteMode = {
id: markerClass,
button: markerClass,
title: presetName,
description: t(tooltipTitleID, { feature: presetName }),
@@ -121,7 +120,7 @@ export function uiModes(context) {
var buttonsEnter = buttons.enter()
.append('button')
.attr('tabindex', -1)
.attr('class', function(d) { return d.id + ' add-button bar-button'; })
.attr('class', function(d) { return d.button + ' add-button bar-button'; })
.on('click.mode-buttons', function(d) {
if (!enabled(d)) return;