Commit Graph

3686 Commits

Author SHA1 Message Date
Bryan Housel
e24acfab77 Change Multiselect input placeholder text to translateable "Add" 2016-04-22 22:33:43 -04:00
Bryan Housel
1b73ce9339 Set minItems 1 only for multiselect field 2016-04-22 22:20:47 -04:00
Bryan Housel
30df2c394f set minItems default in d3.combobox to 1 2016-04-22 21:59:43 -04:00
Bryan Housel
1a9c111d78 Set field.keys so that delete/undo buttons work
For multiselect fields,
field.key should have a ':' on the end of it - we use as the prefix, not the real key
field.keys should contain the array of real keys being modified

see https://github.com/openstreetmap/iD/blob/master/js/id/ui/preset.js#L17-L45

The address field preset works like this also..
It contains an array of key.fields for all the subfields that might be set.
For multiselect fields, we don't know ahead of time what all the subfields are,
so we append to the list in `change()` and rebuild list in `tags()`
2016-04-22 21:22:24 -04:00
Bryan Housel
9d8626a330 Merge branch 'chips' of https://github.com/kepta/iD into kepta-chips 2016-04-22 10:39:41 -04:00
Bryan Housel
53040f455b Add ability to show debug collision boxes around labels 2016-04-17 00:37:51 -04:00
Bryan Housel
ce3eb6cfee Add Debug flags 2016-04-17 00:11:15 -04:00
Bryan Housel
4dd4ccb205 Dedupe relations with same calculated name so d3.combobox will show them
(closes #2891)
2016-04-16 23:17:04 -04:00
Bryan Housel
7930a0bb36 Modal Dialog and Save/Restore improvements
(closes #3036)

1. Fix the modal close button icon - was not visible
2. Use a blocking modal for the Save/Restore dialog
3. Don't allow `context.save()` while modal is visible
   (especially for `onbeforeunload` event - this would wipe user's saved
    history if browser is closed while the Save/Restore modal was visible)
4. Don't allow blocking modals to be dismissed by pressing escape
5. Don't show the close button icon for blocking modals
2016-04-15 23:01:28 -04:00
Bryan Housel
1c871b88a3 Fix indent and remove extra opacity transition 2016-04-15 10:54:52 -04:00
Bryan Housel
435e7b931a Use case sensitive combo for changeset autocompletion
(closes #3039)
2016-04-15 10:54:52 -04:00
Bryan Housel
ae15275252 Add caseSensitive option to d3.combobox 2016-04-15 10:54:52 -04:00
Bryan Housel
7d5e14eeb6 Merge pull request #3062 from openstreetmap/relation-corrupt
Fix member argument to ChangeMember when using raw member editor
2016-04-15 09:30:39 -04:00
Tom MacWright
39429fbceb add a warning to the changeset page if a user mentions google 2016-04-15 15:25:12 +05:30
Bryan Housel
02c65c72f1 Fix member argument to ChangeMember when using raw member editor
(closes #2739)
2016-04-14 22:11:51 -04:00
Bryan Housel
2e50422a01 Don't try to load gpx if drag and drop fileList empty 2016-04-14 01:10:05 -04:00
Bryan Housel
5f3eae9c29 Fix imagery offset +/-, adjust text and style 2016-04-14 01:08:56 -04:00
Bryan Housel
01e87f2e11 Style adjustments, add offset value in meters to input field, remove delays 2016-04-13 21:34:41 -04:00
Bryan Housel
215d83f2d4 Merge branch 'offset' of https://github.com/kepta/iD into kepta-offset 2016-04-13 10:46:11 -04:00
Bryan Housel
2d987a3ece Don't fetch overlay tiles or mapillary data around Null Island
(closes #2751)
2016-04-09 23:04:02 -04:00
Bryan Housel
a77e1b6606 Set title attribute for tag keys/values, ensure combo options have title
This will show values as hover tooltips, in case the field is too narrow and the value is cut off.
(closes #3054)
2016-04-08 23:51:16 -04:00
Bryan Housel
0759f17e87 Don't clean fields (trim whitespace) on every input event
Fields only really need to be fully cleaned when the user leaves the field (onChange, onBlur)
(closes #3045)
2016-04-08 23:32:57 -04:00
Bryan Housel
bd57b81192 Improve usability of Save, Cancel buttons
(closes #3040)
2016-04-07 00:53:32 -04:00
Bryan Housel
f11f4bb58e Close imagery tile seams
(closes #3053)
2016-04-06 09:38:50 -04:00
Kushan Joshi
9261752068 add multiselect preset 2016-04-03 12:40:14 +05:30
Bryan Housel
188958e58d 1.9.2 2016-03-18 15:33:22 -04:00
Bryan Housel
d130c517b0 Use offset coordinates instead of mousecoordinates when dragging
(re: #3003)
2016-03-16 10:50:38 -04:00
Bryan Housel
b643bf105e Start lasso on left button only, refactor lassoed() 2016-03-15 15:45:19 -04:00
Bryan Housel
e0d7daad3a Minor style adjustments, code cleanups 2016-03-15 14:42:33 -04:00
Bryan Housel
3da6b21e44 Merge branch 'freeform' of https://github.com/kepta/iD into kepta-freeform 2016-03-15 11:27:34 -04:00
Bryan Housel
559d4abf85 Set gpx labels on update selection, not enter selection
(closes #3032)
2016-03-14 21:25:36 -04:00
Bryan Housel
e1cde03a95 Only set coalesceChanges flag when a real tag change has happened
(closes #3035)
2016-03-14 20:55:53 -04:00
Bryan Housel
85d38de75b Dispatch layer change events instead of hacky map pan
(fixes #3027, fixes #2804)
2016-03-12 00:12:43 -05:00
Bryan Housel
309bfacf74 Don't blacklist key-values for presets with both area and line geometry 2016-03-10 15:56:57 -05:00
Bryan Housel
83b324b0bb Exclude from areaKeys blacklist presets that are point/vertex only
(closes #3009)
2016-03-10 15:35:40 -05:00
Bryan Housel
58e6ac075b Return to browse mode and block ui while geolocating
(fixes #3016)
2016-03-10 11:07:52 -05:00
Kushan Joshi
9c09af98bb Freeform lasso shapes
Allows iD to draw freeform lasso shapes
(closes #2937)
2016-03-08 03:20:55 +05:30
Kushan Joshi
46b3e3a4c0 Drag to adjust imagery offset
This patch allows to adjust imagery offset by
1. dragging
2. manually entering offset
3. fine tuning with buttons

(closes #1340)
2016-03-07 04:57:02 +05:30
Bryan Housel
c4fbacd625 Rename major_roads -> traffic_roads, minor_roads -> service_roads 2016-03-05 23:58:09 -05:00
Bryan Housel
3ef05cad79 Move highway=unclassified to major_roads feature filter 2016-03-05 23:31:02 -05:00
Bryan Housel
64dd2d67a8 1.9.1 2016-03-03 13:42:05 -05:00
Bryan Housel
643df21cd9 Fix selector for .layer-background opacity
(fixes #3010)
2016-03-03 13:20:20 -05:00
Bryan Housel
78d2d86ff7 Add context.asset for building asset filenames, use it for traffico
We were using assetMap/assetPath but only for images, and it was broken anyway
(fixes #3011)
2016-03-02 23:06:33 -05:00
Bryan Housel
f561ab3151 1.9.0 2016-03-01 17:08:47 -05:00
Bryan Housel
e7dfe3949e Fix classes of map data lists and items
(gpx layer was erroneously classed `layer-gpx` and getting `pointer-events:none`)
2016-03-01 13:06:30 -05:00
Bryan Housel
a912808d81 Fix issue with choosing gpx file 2016-03-01 13:05:52 -05:00
Bryan Housel
c79c65fb39 Reinsert parentRelations of modified parentWays
(closes #3008)
2016-02-29 23:09:24 -05:00
John Firebaugh
a85361545d Preserve connectivity when pasting
Fixes #2584
2016-02-29 12:09:14 -05:00
Bryan Housel
4a93977f43 Merge pull request #3001 from openstreetmap/data-layer-refactor2
Data layer refactor
2016-02-27 23:10:06 -05:00
Bryan Housel
a866856ec2 Cleanup turn restriction handlers when form not visible 2016-02-26 00:14:09 -05:00