Commit Graph

1754 Commits

Author SHA1 Message Date
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
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
Bryan Housel
9c02034c0d Merge branch 'matkoniecz-bad-tags' of https://github.com/matkoniecz/iD into matkoniecz-matkoniecz-bad-tags 2018-11-07 10:32:20 -05:00
Bryan Housel
a1dbdea725 Merge branch 'master' into flexbox-buttons 2018-11-07 10:13:40 -05:00
Bryan Housel
b860bbb5f0 Expand sidebar when selecting notes and data 2018-11-07 09:54:54 -05:00
Bryan Housel
42aa834fab Avoid obscuring selected entity when expanding the sidebar 2018-11-06 17:03:58 -05:00
Bryan Housel
cc227ed4e2 Make map panning optional on sidebar expand/collapse 2018-11-06 16:06:45 -05:00
Bryan Housel
e31e84b109 Simplify some things I found confusing
- class the #sidebar itself as collapsed not the #id-container
- the #sidebar is the selection, so just use `selection` instead of
  `var sidebar = d3_select('#sidebar');`
  (which conflicts with the closure `sidebar()` function)
- have separate functions `expand` `collapse` `toggle` rather than a
  `toggle(shouldCollapse)`
2018-11-06 15:08:05 -05:00
Bryan Housel
3d65dd8903 preventDefault on sourceEvent, if present
This prevents a crash when d3_event is not the actual event, but is a
transition event or similar
2018-11-06 14:16:23 -05:00
Bryan Housel
08e9476f3e Fix photoviewer resize event 2018-11-06 13:09:04 -05:00
Quincy Morgan
50d0b98be8 Adds undo messages for connecting points to points, vertices, lines, and areas; and vertices to sibling and adjacent vertices
Closes #1252
2018-11-05 17:50:15 -08:00
Bryan Housel
b4119ae1ad Class toolbars with narrow if we detect overflow happening
Also add css rules to drop labels from toolbar buttons if needed
2018-11-05 17:16:50 -05:00
Bryan Housel
136e4556a7 Move spinner to flex-end, and some css cleanups 2018-11-05 12:22:20 -05:00
Quincy Morgan
dcc654f269 Merge pull request #5467 from quincylvania/tag-row-flexbox
Keeps the raw tag editor buttons fixed-width using flexbox
2018-11-04 13:07:20 -08:00
Quincy Morgan
5a2444ed40 Converts == to === in the prior commit 2018-11-04 12:42:04 -08:00
Quincy Morgan
3ff1139364 Fixes an error where preventDefault would be called on an event object without that function 2018-11-04 12:40:59 -08:00
Quincy Morgan
1db80ff49c Adds missing semicolon 2018-11-04 12:06:32 -08:00
Quincy Morgan
f4a64c27a4 Keeps the raw tag editor buttons fixed-width using flexbox 2018-11-04 11:55:29 -08:00