Skip to content

Commit

Permalink
Merge pull request #1 from openstreetmap/master
Browse files Browse the repository at this point in the history
Merge openstreetmap/iD into hikemaniac/iD
  • Loading branch information
hikemaniac authored Feb 26, 2018
2 parents 0348f9f + 63a4195 commit a37f705
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 12 deletions.
5 changes: 3 additions & 2 deletions css/80_app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ input[type=number] {
div.combobox {
z-index: 9999;
display: none;
box-shadow: 0 0 10px 0 rgba(0,0,0,.1);
box-shadow: 0 4px 10px 1px rgba(0,0,0,.2);
margin-top: -1px;
background: white;
max-height: 120px;
Expand All @@ -1896,7 +1896,7 @@ div.combobox {
.combobox a {
display: block;
padding: 5px 10px;
border-top:1px solid #ccc;
border-top: 1px solid #ccc;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Expand All @@ -1909,6 +1909,7 @@ div.combobox {

.combobox a:first-child {
border-top: 0;
padding: 4px 10px;
}

.combobox-caret {
Expand Down
2 changes: 1 addition & 1 deletion data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ en:
label: Wheelchair Access
wholesale:
# wholesale=*
label: wholesale
label: Wholesale
width:
# width=*
label: Width (Meters)
Expand Down
2 changes: 1 addition & 1 deletion data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@
"wholesale": {
"key": "wholesale",
"type": "typeCombo",
"label": "wholesale"
"label": "Wholesale"
},
"width": {
"key": "width",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/fields/wholesale.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"key": "wholesale",
"type": "typeCombo",
"label": "wholesale"
}
"label": "Wholesale"
}
3 changes: 3 additions & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5207,6 +5207,7 @@
"tags": {
"craft": "boatbuilder"
},
"matchScore": 0.4,
"name": "Boat Builder"
},
"craft/bookbinder": {
Expand Down Expand Up @@ -8241,6 +8242,8 @@
"icon": "landmark",
"fields": [
"name",
"religion",
"denomination",
"inscription"
],
"geometry": [
Expand Down
1 change: 1 addition & 0 deletions data/presets/presets/craft/boatbuilder.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"tags": {
"craft": "boatbuilder"
},
"matchScore": 0.4,
"name": "Boat Builder"
}
2 changes: 2 additions & 0 deletions data/presets/presets/historic/wayside_shrine.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"icon": "landmark",
"fields": [
"name",
"religion",
"denomination",
"inscription"
],
"geometry": [
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@
"label": "Wheelchair Access"
},
"wholesale": {
"label": "wholesale"
"label": "Wholesale"
},
"width": {
"label": "Width (Meters)"
Expand Down
4 changes: 2 additions & 2 deletions modules/lib/d3.combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ export function d3combobox() {
var rect = node.getBoundingClientRect();

wrapper
.style('left', rect.left + 'px')
.style('width', rect.width + 'px')
.style('left', (rect.left + 5) + 'px')
.style('width', (rect.width - 10) + 'px')
.style('top', rect.height + rect.top + 'px');
}

Expand Down
2 changes: 1 addition & 1 deletion modules/services/mapillary.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export default {
hideViewer: function() {
_mlySelectedImage = null;

if (!_mlyFallback) {
if (!_mlyFallback && _mlyViewer) {
_mlyViewer.getComponent('sequence').stop();
}

Expand Down
5 changes: 4 additions & 1 deletion modules/svg/gpx.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ export function svgGpx(projection, context, dispatch) {
.attr('class', textClass)
.merge(labels)
.text(function(d) {
return d.properties.desc || d.properties.name;
if (d.properties) {
return d.properties.desc || d.properties.name;
}
return null;
})
.attr('x', function(d) {
var centroid = getPath.centroid(d);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@mapbox/maki": "^4.0.0",
"@std/esm": "^0.21.0",
"@std/esm": "^0.22.0",
"chai": "^4.1.0",
"colors": "^1.1.2",
"concat-files": "^0.1.1",
Expand Down

0 comments on commit a37f705

Please sign in to comment.