61 Commits

Author SHA1 Message Date
Mattia Pezzotti
d1e5c2910c add date slider for street level photos, and more (#10394)
full list of enhancements:

* year slider to filter photos by freshness
* toggle active streetlevel layers with shortcut `shift+P`
* hfov, pitch and direction is now held between sequences and images as asked in #10392
* fix for #10361 (only panoramax)
* added tests and jsdoc
* add ticks for existing photos on slider
* general bug fixes
* rudimentary support for toDate in date slider (only when iD is started with a "to" date in the hash parameter: show a second slider to visualize and set the "to" date)

---------

Co-authored-by: Martin Raifer <martin@raifer.tech>
2025-03-18 21:09:37 +01:00
Martin Raifer
884874dedc Merge branch 'develop' into gsoc_2022/explore_iD 2023-08-07 10:38:10 +02:00
Martin Raifer
d7902e1388 only show regional street-level photo providers in the available region
and disable selection checkbox if not zoomed in enough to load the photos
2023-08-02 16:35:56 +02:00
Mukesh Jaiswal
3ccc434c83 Refactor: working prototype, needs some error handling and translation 2022-09-12 13:41:19 +02:00
Mukesh Jaiswal
70f36bc3e1 WIP: long,lat found for projection 2022-09-05 12:04:48 +02:00
Mukesh Jaiswal
e86167200d WIP: displaying images on map 2022-09-04 22:08:42 +02:00
mukesh
7a2ab8aeaa Draft: still in progress 2022-08-03 15:37:09 +02:00
Nikola Pleša
7a0d8adb7b Switch to Mapillary API v4 2021-06-15 10:13:07 +02:00
Nikola Pleša
6cd17713fa Use Mapillary vector tiles for images, sequences and map features 2021-03-01 10:19:41 +01:00
Quincy Morgan
981cdc6736 Apply photo date and username filters to Mapillary sign and object detections (close #8133)
Don't update disabled SVG layers upon photo changes
2020-10-29 11:59:12 -04:00
Quincy Morgan
dc8fd13586 Enable array-callback-return eslint rule 2020-10-23 13:47:09 -04:00
Quincy Morgan
081db7c7a6 Support filtering by multiple photo usernames 2020-10-19 16:27:07 -04:00
Quincy Morgan
a48c69331f Merge branch 'develop' into photo-filter-temp 2020-10-15 13:38:15 -04:00
Quincy Morgan
a33ab44e81 Merge branch 'develop' into photo-filter-temp
# Conflicts:
#	css/80_app.css
#	modules/services/mapillary.js
2020-10-12 16:16:32 -04:00
Quincy Morgan
21a49bbec8 Initial support for D3 v6.2.0 2020-10-06 15:08:39 -04:00
Quincy Morgan
ad54a6e140 Support opening iD with a Streetside or OpenStreetCam photo specified as a URL parameter (close #6398)
Bring the APIs for the three street level services closer in sync
2020-10-02 13:30:36 -04:00
Quincy Morgan
9510578107 Merge branch 'mapillary-update' into develop
# Conflicts:
#	modules/services/mapillary.js
#	modules/svg/mapillary_map_features.js
#	modules/svg/mapillary_signs.js
2020-09-13 16:34:25 -04:00
Quincy Morgan
4050940268 Lazy load photo overlay resources (close #7982) 2020-09-13 11:52:37 -04:00
Nikola Plesa
6d5222ceb4 fix: fix warnings and update detection tags 2020-07-31 16:37:05 +02:00
Nikola Plesa
e87b0b9432 feat: updates for mapillary map features and traffic signs 2020-07-31 14:55:17 +02:00
Nikola Plesa
202c932abe fix: mapillary sequence filtering 2020-07-27 09:42:59 +02:00
Nikola Plesa
22bc5121a4 feat: date and username filtering for photo overlay layers 2020-07-27 09:42:59 +02:00
Quincy Morgan
a7ce956e1f Don't use global selectors in street-level photo services (re: #7445) 2020-03-29 11:04:38 -07: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
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
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
0edd10001e Removing more lodash: isEmpty, isNumber, some map/reduce/forEach
(re: #6087)
2019-03-27 13:32:35 -04:00
Quincy Morgan
7d0080a642 Persist the photo overlay layers via the URL query string (re: #5813) 2019-03-14 16:48:08 -04:00
Quincy Morgan
c65a4d038e Add photo overlay filter options for hiding flat and pano photos (close #5433) 2019-03-14 14:24:21 -04:00
Max Grossman
7f837c7e0c no need to generate service variable
ref #5929
2019-02-01 14:01:17 -05:00
Max Grossman
d894521143 just don't close viewer...
ref #5829
2019-02-01 13:55:10 -05:00
SilentSpike
129c28fb25 Fix street imagery selection highlight persistence
Root cause was the `select` mode removing the "selected" class from all
elements upon `exit()`. Easy fix is to use a different class (here
"currentView") for street imagery elements.
2019-01-29 13:26:53 +00:00
SilentSpike
99f7a90387 Fix imagery layers resetting eachother's classes
Fixes:
- Selecting a bubble then enabling a second imagery layer removes the hovered and selected highlighting
- If multiple imagery layers are enabled and you select a bubble it only temporarily becomes highlighted
- If multiple imagery layers are enabled and a bubble is highlighted, hovering over another imagery layer's bubble will remove the selected and hovered highlighting

Basically these all came down to style updates resetting all layers for
cases other than when the viewport was changed (where doing so makes
sense because the selected bubble/sequence needs to update as a result).

See #5494
2019-01-29 13:25:47 +00:00
SilentSpike
da41d9d921 Fix mouseover events on imagery layer bubbles
This is just a minor thing that doesn't usually alter visible behaviour.

The mouseover and mouseout events would fire when moving between child
elements of the svg group which was unnecessary.
2019-01-29 13:24:01 +00: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
Matias Volpe
c000da07af Leave directional indicator only for current image 2018-07-19 09:49:00 -03:00
Matias Volpe
aac394a487 Update directional indicator based off of current bearing in Mapillary JS 2018-07-19 08:45:28 -03:00
Bryan Housel
6d7659b3bb Refactor common helper code to svg/helpers.js, add area nopes 2017-12-21 10:36:02 -05:00
Bryan Housel
d53637618e Draw selected marker big, fix draw ordering issues, fix close button 2017-11-09 11:27:36 -05:00
Bryan Housel
9dac13a915 Show only linestrings at low zooms 2017-11-08 16:46:53 -05:00
Bryan Housel
0702c66834 Improve sign hover/selected, fix Mapillary viewer setup for signs layer 2017-11-08 15:30:45 -05:00
Bryan Housel
4571fd0563 Highlight selected/hovered streetview tracks, fade unselected
Also some code cleanups and nitpicky variable renames
More consistency in Mapillary/OpenStreetCam services
2017-11-08 00:35:44 -05:00
Bryan Housel
fb063aa2c5 Render panoramic Mapillary viewfields as a sphere instead of arc
(closes #3154)
2017-11-07 01:04:11 -05:00
Bryan Housel
095dc19164 Add sequence linestrings to mapillary photo layer too 2017-11-06 21:32:03 -05:00
Bryan Housel
9edae82673 Convert lodah-es and d3 to named imports for svg 2017-09-25 23:16:24 -04:00
Bryan Housel
b21c2933af Faster layer disable/enable transitions 2017-09-18 22:02:16 -04:00
Bryan Housel
941d026b7c Adjust max Mapillary pages fetched per zoom, min viewfield zoom
For performance around densely mapped areas like SF
2016-11-17 12:07:14 -05:00
Bryan Housel
9ee790c1cc Don't need to pass dimensions to sublayers.. use projection.clipExtent
(the dimensions call to layers is to set width/height on svg surface element)
2016-10-30 22:40:11 -04:00
Bryan Housel
7c5a4df64d Hide Mapillary viewfields at low zoom 2016-10-29 13:28:17 -04:00
Bryan Housel
5c5e90c411 Upgrades for mapillary 2.0.0 2016-10-28 14:23:21 -04:00