mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Don't allow adding point-only features as vertices
This commit is contained in:
+1
-2
@@ -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;
|
||||
|
||||
|
||||
@@ -396,7 +396,6 @@ export function uiSearchAdd(context) {
|
||||
var markerClass = 'add-preset add-' + geometry +
|
||||
' add-preset-' + preset.name().replace(/\s+/g, '_') + '-' + geometry;
|
||||
var modeInfo = {
|
||||
id: markerClass,
|
||||
button: markerClass,
|
||||
preset: preset,
|
||||
geometry: geometry
|
||||
|
||||
Reference in New Issue
Block a user