mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Don't allow adding point-only features as vertices
This commit is contained in:
@@ -10,13 +10,8 @@ import { modeDrawArea } from './index';
|
||||
import { osmNode, osmWay } from '../osm';
|
||||
|
||||
|
||||
export function modeAddArea(context, customMode) {
|
||||
var mode = customMode || {
|
||||
id: 'add-area',
|
||||
button: 'area',
|
||||
title: t('modes.add_area.title'),
|
||||
description: t('modes.add_area.description')
|
||||
};
|
||||
export function modeAddArea(context, mode) {
|
||||
mode.id = 'add-area';
|
||||
|
||||
var behavior = behaviorAddWay(context)
|
||||
.tail(t('modes.add_area.tail'))
|
||||
|
||||
@@ -10,13 +10,8 @@ import { modeDrawLine } from './index';
|
||||
import { osmNode, osmWay } from '../osm';
|
||||
|
||||
|
||||
export function modeAddLine(context, customMode) {
|
||||
var mode = customMode || {
|
||||
id: 'add-line',
|
||||
button: 'line',
|
||||
title: t('modes.add_line.title'),
|
||||
description: t('modes.add_line.description')
|
||||
};
|
||||
export function modeAddLine(context, mode) {
|
||||
mode.id = 'add-line';
|
||||
|
||||
var behavior = behaviorAddWay(context)
|
||||
.tail(t('modes.add_line.tail'))
|
||||
|
||||
@@ -6,13 +6,9 @@ import { osmNode } from '../osm';
|
||||
import { actionAddMidpoint } from '../actions';
|
||||
|
||||
|
||||
export function modeAddPoint(context, customMode) {
|
||||
var mode = customMode || {
|
||||
id: 'add-point',
|
||||
button: 'point',
|
||||
title: t('modes.add_point.title'),
|
||||
description: t('modes.add_point.description')
|
||||
};
|
||||
export function modeAddPoint(context, mode) {
|
||||
|
||||
mode.id = 'add-point';
|
||||
|
||||
var behavior = behaviorDraw(context)
|
||||
.tail(t('modes.add_point.tail'))
|
||||
|
||||
Reference in New Issue
Block a user