Commit Graph

448 Commits

Author SHA1 Message Date
Quincy Morgan
51a3fce4eb Account for instances where icon has multiple classes 2020-01-16 10:33:59 -05:00
Quincy Morgan
544dd1a742 Use the icon class when selecting icons 2020-01-16 10:31:25 -05:00
Quincy Morgan
912151ff38 Allow viewing and editing the tags/relations of selected features at any zoom level in 2.x (re: #5001) 2019-12-12 16:54:16 -05:00
Quincy Morgan
4d8d27f3c4 Rely more on mapillary selected photo key than photoviewer datum
Remove mapillary map feature selection outline when closing photoviewer
2019-12-11 17:53:03 -05:00
Quincy Morgan
5e756bb90d Fix lint warning 2019-12-11 17:32:57 -05:00
Quincy Morgan
0d5bd8b277 Store selected mapillary image by its key rather than its object
Properly sort selected mapillary signs and features above unselected ones
2019-12-11 17:15:36 -05:00
Quincy Morgan
e335f0a086 Don't style untagged multipolygon member lines as area boundaries if they also have belong to non-multipolygon relations (close #6787) 2019-12-11 16:32:00 -05:00
Quincy Morgan
0b7d5b29c7 Add icon and tooltip for mapillary detected billboards 2019-12-11 15:58:09 -05:00
Quincy Morgan
df3b281d39 Fix mapillary detection selection rendering in Firefox and Safari (close #6804)
Fix mapillary feature detection tooltips (re: #7079)
2019-12-11 15:03:54 -05:00
Quincy Morgan
5cab4b1386 Revert circular markers (open #6163) 2019-12-10 11:23:12 -05:00
Quincy Morgan
dffe80fb5f Taper the point marker shape somewhat (re: #6163) 2019-12-10 10:53:53 -05:00
Quincy Morgan
00e8a125e2 Make point markers more circular with larger icons (close #6163)
Tweak the grey style of points linked to wikidata
2019-12-09 17:21:33 -05:00
Quincy Morgan
231e2c71a1 Add unsearchable preset for demolished:building=yes (close #7098)
Render features with a status prefix in the provisional styles (e.g. dashed outline)
2019-12-09 11:13:42 -05:00
Bryan Housel
baca525117 User lighter green fill for golf=green
(closes #7101)

This also adds fill styles for the other light-green things like cemetaries
vineyards, etc.. For some reason they didn't have fill styles before so only
the strokes were being styled light green.
2019-12-09 10:10:03 -05:00
Quincy Morgan
db300d1071 Add tooltips to mapillary map features layer icons (close #7079) 2019-12-05 11:52:12 -05:00
Quincy Morgan
bc0d83b5cd Apply label baseline hack to Firefox 70+ (close #7044) 2019-11-13 15:36:22 -05:00
Bryan Housel
d986d1b68d Use native Promises and drop "q" dependency, update streetside.js to es6 2019-11-08 16:24:41 -05:00
Quincy Morgan
3f35a35dd1 Remove unused imperial.json and drive-left.json data files 2019-11-08 19:28:02 +01:00
Quincy Morgan
271a4cbac7 Update rbush to 3.0.1 (close #6359) 2019-11-08 18:17:17 +01:00
Quincy Morgan
c5e1c0d596 Fix lint warning 2019-10-11 14:02:19 +02:00
Quincy Morgan
92116f198a Only show edited vertices as needed (close #6934) 2019-10-11 14:01:07 +02:00
Quincy Morgan
82acd82a29 Don't make edited vertex targets larger
Render vertex and point change highlight with some opacity
2019-10-10 18:58:39 +02:00
Quincy Morgan
18a2c6c320 Fix issue where false edited segment indicators could appear 2019-10-10 18:28:43 +02:00
Quincy Morgan
c7186e2ee6 Replace usage of lodash isEqual (re: #6843) 2019-10-08 20:42:58 +02:00
Quincy Morgan
7d31c76546 Unify visual diff styles for lines and areas (re: #6843)
Render tag-only diffs in yellow instead of translucent orange
Don't use target colors for vertex diff styling
2019-10-08 20:25:09 +02:00
Quincy Morgan
2924d4619a Show visual diff for standalone points (re: #6843) 2019-10-07 16:33:35 +02:00
Quincy Morgan
f3e7bd9034 Render line and vertex visual diff on shadow instead of above everything (re: #6843)
Differentiate added lines and vertices from merely changed ones
2019-10-07 16:13:35 +02:00
Quincy Morgan
909079e454 Replace uses of lodash omit (re: #6843)
Fix lint warnings
2019-10-07 11:43:40 +02:00
Quincy Morgan
c031f2dd33 Merge branch '2.15' into 215_highlight_edits
# Conflicts:
#	modules/svg/areas.js
2019-10-07 10:49:52 +02:00
Huon Wilson
de2f052eb9 Change cliff direction marker to dark grey to match the line
Cliffs had their colour changed in 5f9bea67d, but the directional
arrow remained green.

Fixes #6918
2019-10-07 13:11:40 +11:00
Quincy Morgan
2ccdc438f4 Render area fill patterns in preset icons (close #6900) 2019-09-30 12:27:33 +02:00
Benjamin Clark
ad5025de3e Add support for area diffs. 2019-09-11 14:14:06 -04:00
Benjamin Clark
a0f85967b0 highlight edits now differentiates between tag edits and geometry edits for vertices/lines. 2019-09-11 13:02:12 -04:00
Benjamin Clark
a4dc7518c4 Add a hotkey to highlight edited ways. 2019-09-11 13:02:12 -04:00
Matias Volpe
8e616d7384 feat: add Mapillary Map Features layer 2019-08-22 15:16:31 -03:00
Quincy Morgan
1bce70e3f5 Update directional arrow styling when switching between directional presets (close #6032) 2019-07-17 13:55:56 -04:00
Quincy Morgan
3d9bcc8234 Add directional arrows to waterway=weir rendered as lines (close #6615) 2019-07-03 15:46:23 -04:00
Bryan Housel
6eb73e7de6 Don't adjust map labels for wikidata tagged items 2019-05-20 10:55:23 -04:00
Bryan Housel
344aec206c Support special styling for wikidata-tagged features 2019-05-18 23:57:23 -04:00
Bryan Housel
bdb454e1b3 Remove utilCallWhenIdle, use requestIdleCallback/cancelIdleCallback
Places where a reset or connection switch would be problematic,
we can now cancel the callbacks.
2019-05-16 22:28:56 -04:00
Quincy Morgan
fa0c05f8f7 Don't render deprecated basin and reservoir features the same as their modern counterparts 2019-05-16 12:35:19 -04:00
Quincy Morgan
dcd9876fdf Use thinner partial fills for buildings parts and indoor features (re: #6204) 2019-05-08 15:55:59 -04:00
Bryan Housel
fceb1a86f7 Merge pull request #6245 from openstreetmap/d3-v5
d3 v5
2019-04-29 15:46:08 -04:00
Bryan Housel
e981cd5dd5 Switch mapillary and openstreetcam tests to work async
- can't reliably use sinon.spy to tell whether a thing has been called,
  so we listen for events instead and check server.requests()
- make sure to request the next page before dispatching `loadedImages` so
  we can `server.respond()` to the request in the event handler if we want to
- also moves `localeDateString` in the openstreetcam service from parsing
  code to display code, because it's very slow (we can just do this for the
  images we look at, instead of all images we fetch)
2019-04-29 15:31:08 -04:00
Quincy Morgan
d01bb78707 Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys (close #6237) 2019-04-24 13:45:59 -07:00
Bryan Housel
e6bc9d9e8f Swap out d3-request, swap in d3-fetch 2019-04-24 16:25:25 -04:00
Bryan Housel
7dce4bb161 Avoid asking DOM if layers are classed disabled in map.editable
`map.editable` is hot code because it's called frequently by the `isHiddenX`
tests in `features.js`.  It's much more efficient to just ask the osm layer
whether it is enabled, than to use D3 to find that layer in the DOM and check
whether it's classed `disabled`
2019-04-22 22:12:42 -04:00
Bryan Housel
51c1088c1b Merge branch 'master' into validation_and_change_perf 2019-04-19 15:18:23 -04:00
Quincy Morgan
2967d2d020 Add support for icons from the noun project (close #5691) 2019-04-16 18:06:05 -07:00
Bryan Housel
95a1bbaf97 Add downloaded debug flag and visualization for tiles downloaded 2019-04-08 22:06:47 -04:00