Commit Graph

1770 Commits

Author SHA1 Message Date
Bryan Housel
df91eb2959 Cleanup style, make sure multilingual fields always render 2018-11-26 17:13:55 -05:00
Bryan Housel
9341e477a6 Merge remote-tracking branch 'origin/master' into brand-name-protection 2018-11-26 15:27:56 -05:00
Bryan Housel
f6f146f79b Lock down some fields when a brand preset has been chosen 2018-11-26 15:13:40 -05:00
Bryan Housel
c1b19e7c9e Generate unique _id for each tooltip
This lets allows multiple tooltips around nested elements.
The previous code did a bunch of  .selectAll('.tooltip') that would
break if it matched multiple tooltips.
2018-11-26 14:14:19 -05:00
Bryan Housel
4972fed136 Don't show the combobox control for a readonly input field 2018-11-26 11:18:04 -05:00
Quincy Morgan
b3e71c7522 Manual removal of the hover-highlight styling when clicking on a relation or member in the sidebar.
Closes #5521
2018-11-25 18:15:33 -05:00
J Guthrie
3dbcdc97e4 Remove locale param from #docs which returns all locales by default 2018-11-24 21:41:22 +00:00
J Guthrie
ed66968308 Add localised lang param to API url call 2018-11-24 21:12:51 +00:00
Bryan Housel
ae063e9616 Make name and brand fields readonly on suggestion presets
(re #5515)
2018-11-23 23:44:52 -05:00
Quincy Morgan
d6ea64241b Trackpad scroll-to-zoom while holding Shift or Option/Alt 2018-11-21 20:55:30 -05:00
Quincy Morgan
e2b2649976 Merge pull request #5498 from quincylvania/form-field-flexbox
Flexbox preset field, member, and membership UI
2018-11-21 20:14:36 -05:00
Bryan Housel
ea9e3008a5 addTags() -> setTags() / removeTags() -> unsetTags()
This avoids overriding the `addTags` and `removeTags` objects with functions
2018-11-21 12:59:43 -05:00
Bryan Housel
2699418c3e Disable the name field when matching a suggestion preset
(re: #5515)
2018-11-21 12:40:12 -05:00
Bryan Housel
622621ca89 Improve suggestion combo behavior in the name field
- adds minItems(1) so it will match
- displays up to 10 suggestions
- correctly removes old tags by setting the `undefined`
- adjust the name distance scoring
- only shows name suggestions if the preset can benefit from them
  (i.e. a generic/fallback or a preset that has some suggestions in the index)
2018-11-21 11:15:03 -05:00
Bryan Housel
e3f5aecda9 Remove dataSuggestions and utilSuggestNames
- dataSuggestions was just a reexport of the name-suggestion-index
- utilSuggestNames was a combobox fetcher function used only once by uiFieldLocalized
    Doesn't need to be a util if it's only used once in the code
    and the tests for it were not really that interesting
2018-11-20 21:27:32 -05:00
Bryan Housel
005e227550 Merge branch 'zoom_pan' 2018-11-20 11:49:33 -05:00
Bryan Housel
9627e1e261 Test in all browsers, improve calcs, cleanup code 2018-11-20 11:48:27 -05:00
Bryan Housel
45a3e58c37 Add support for 2-finger pan and zoom gestures
Also adjust the zooming delta function on Firefox
(which uses wheel events in line units instead of pixel units)
2018-11-19 22:40:23 -05:00
RudyTheDev
ff8723e194 Add water waves fill pattern and pond-specific pattern 2018-11-18 22:12:40 +02:00
RudyTheDev
b18dfb4030 Add landfill fill pattern, farmyard pattern (and remove farm pattern), implement vineyard fill pattern 2018-11-18 21:39:09 +02:00
RudyTheDev
46f762c0a6 Add quarry fill pattern 2018-11-18 20:52:33 +02:00
RudyTheDev
f41bb055f2 Add fill patterns for cemetery most common religions 2018-11-18 20:41:58 +02:00
Quincy Morgan
7bad67ff76 Flexbox preset field, member, and membership UI 2018-11-18 11:28:48 -05:00
Bryan Housel
b7e218a6cb Remap Safari gesture events to wheel events - #5492
(still needs some more testing)
2018-11-17 02:31:15 -05:00
RudyTheDev
3e2eaa6635 Allow fill pattern definitions to have short-hand syntax when there's only one pattern "rule" 2018-11-16 13:34:23 +02:00
RudyTheDev
1e51d5ff23 Add new wetland fill patterns; clean up pattern selection code 2018-11-16 12:51:31 +02:00
RudyTheDev
99ace5c791 Expand fill pattern definitions with optional tag-value pair requirement; add forest/wood broadleaved, needleleaved and leafless patterns using the new rules 2018-11-16 02:22:18 +02:00
RudyTheDev
1f6828a24f Further change fill pattern definitions to allow iterating over "rules" 2018-11-16 01:37:58 +02:00
RudyTheDev
b22dfb7ebb Change the fill pattern definition to have strict tag-value pairs 2018-11-16 00:14:54 +02:00
Bryan Housel
4e8cb9e8b0 remove duplicate scrub pattern 2018-11-15 14:27:39 -05:00
RudyTheDev
1106e593e4 Merge branch 'master' into new-stylings 2018-11-15 18:56:34 +02:00
RudyTheDev
2e9d1209e6 Add a new pattern "grass" for grass/meadow instead of dots 2018-11-15 17:45:14 +02:00
RudyTheDev
473cd60986 Add a new pattern "forest" for forest/wood; use dots for grass; use bushes (wetlands) for scrub 2018-11-15 16:40:40 +02:00
Bryan Housel
1731ce4651 Partition viewport by tiles, not by pixels
(closes #4297)

The previous approach split the viewport up by pixels, but each time the view
moved, the pixels would change, so it was not a stable selection of the
streetview data, and the markers would fight for position as the user moved
around.

This approach uses utilTiler to partition the view into stable tiles.
2018-11-14 14:48:42 -05:00
Bryan Housel
317a3be93b Add tiler.getGeoJSON, useful for debugging tile settings 2018-11-14 14:22:10 -05:00
Bryan Housel
152022aec4 Use context.keybinding for keybindings that don't change
(closes #5487)
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555 Move lib/d3.keybinding.js -> util/keybinding.js
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
Bryan Housel
2ffcec965a Don't snap notes to OSM elements
(closes #5191)
2018-11-12 17:23:38 -05:00
Bryan Housel
cef64b0751 Avoid requesting tiles from wrapped world
(closes #5485)
2018-11-12 15:50:11 -05:00
Bryan Housel
9cd40f22be When there is no activeID, we can memoize svgSegmentWay 2018-11-12 12:17:12 -05:00
Bryan Housel
4a3d5e2316 Avoid reflow caused by restriction editor checking its dimensions 2018-11-10 00:40:45 -05:00
Bryan Housel
05a5563a41 Use a transient to memoize preset.match
This slightly speeds up some things, including label rendering
2018-11-10 00:05:53 -05:00
Bryan Housel
cc71f924f3 Fix stacking order in turn restriction editor 2018-11-09 22:54:07 -05:00
Bryan Housel
3bc841e95b Adjust layer ordering to draw touch targets above data layers 2018-11-09 21:48:45 -05:00
Bryan Housel
509464c932 Don't allow user to toggle sidebar in the walkthrough
(this would mess up all the tooltips)
2018-11-08 14:07:06 -05:00
Bryan Housel
826e08149b Setup data layers before starting the walkthrough
(closes #5136)
2018-11-08 13:53:13 -05:00
Bryan Housel
46326252bc Rewrite source.polygon into array of outers without holes
(closes #5264, closes #5250, closes #5272)
2018-11-08 13:17:13 -05:00
Bryan Housel
a73a75d1d3 Adjust initialization order so that map has dimensions before hash()
This fixes a weird regression where the hash would try to centerzoom the map,
but the map did not yet have dimensions, so the center would end up in the top-left.
2018-11-08 11:15:26 -05:00
Bryan Housel
b7df3eda38 Use new Mapillary API calls for map_features, image_detections
(closes #5374)
2018-11-07 23:09:11 -05:00
Bryan Housel
878bfdd144 Exclude non-searchable presets from the preset recently-used list
(closes #5450)
2018-11-07 11:45:39 -05:00