mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
Adds presets for Traffic Sign, Speed Limit Sign, and City Limit Sign, each with point/vertex variants to account for different direction fields
Makes the maxspeed field compatible with node entities
This commit is contained in:
@@ -49,8 +49,14 @@ export function uiFieldMaxspeed(field, context) {
|
||||
.on('change', change)
|
||||
.on('blur', change);
|
||||
|
||||
var childNodes = context.graph().childNodes(context.entity(entity.id)),
|
||||
var loc;
|
||||
if (entity.type === 'node') {
|
||||
loc = entity.loc;
|
||||
}
|
||||
else {
|
||||
var childNodes = context.graph().childNodes(context.entity(entity.id));
|
||||
loc = childNodes[~~(childNodes.length/2)].loc;
|
||||
}
|
||||
|
||||
isImperial = _some(dataImperial.features, function(f) {
|
||||
return _some(f.geometry.coordinates, function(d) {
|
||||
|
||||
Reference in New Issue
Block a user