Commit Graph

58 Commits

Author SHA1 Message Date
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
271a4cbac7 Update rbush to 3.0.1 (close #6359) 2019-11-08 18:17:17 +01:00
Quincy Morgan
7d9f732753 Fix issue where Mapillary and Streetside viewers would not receive resize events (close #6286) 2019-08-22 10:19:46 -05:00
Bryan Housel
4a8c20c56e Remove lodash forEach
(re: 6087)
2019-03-28 19:50:20 -04:00
Bryan Housel
5e1ff74199 Replace lodash difference, intersects, union
(re: 6087)
2019-03-27 01:22:11 -04:00
Bryan Housel
7a6c63fcc5 Remove lodash extend (re: #6087) 2019-03-23 00:38:39 -04:00
Bryan Housel
ff4f8f005f Remove lodash find and findIndex
(re: #6087)
2019-03-22 17:31:41 -04: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
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
08e9476f3e Fix photoviewer resize event 2018-11-06 13:09:04 -05:00
Bryan Housel
2fa593421f Rename scaleExtent to zoomExtent, slightly simplify getTiles() 2018-07-22 01:15:44 -04:00
Bryan Housel
7be9439c35 Use geoScaleToZoom to calculate zoom in Mapillary, OpenStreetCam 2018-07-21 21:59:35 -04:00
Bryan Housel
c0b77d8226 remove unneeded dimensions argument (projection clipExtent has it) 2018-07-21 21:44:14 -04:00
Bryan Housel
cd3d576276 rename geoTile -> tiler 2018-07-21 21:27:44 -04:00
Bryan Housel
02713e48fb Move cache management out of tiler, it's responsibilty of service
Also remove some unused code and eslint warnings
2018-07-21 11:11:39 -04:00
Bryan Housel
d1fe81b905 rename utilTile -> utilTiler 2018-07-21 10:07:56 -04:00
Bryan Housel
e4d829ec06 Have the tiler return filtered results - re: skipNullIsland 2018-07-21 10:03:40 -04:00
Thomas Hervey
386d375b7a fix excessive note tiling and network request 2018-07-19 10:51:39 -04:00
Thomas Hervey
c563abaf7a pass dimensions to tile 2018-07-18 15:49:04 -04:00
Thomas Hervey
5bf3f7ed3e Merge branch 'master' into refactor-loadTiles 2018-07-18 07:26:56 -04:00
Bryan Housel
e221dcae58 Dispatch new dimensions with photoview resize, resize all layers
-Adds ability to resize OpenStreetCam and Bing Streetside layers
-Also slightly increases the width of the resize handles
-Also limits max resize so it won't go larger than the map
2018-07-17 17:06:59 -04:00
Thomas Hervey
d4b1622667 moved getTiles and filtering to utils 2018-07-14 19:15:25 -04:00
Bryan Housel
cd7cdd95e9 Add "View on Bing Maps" link, cleanup css
(closes #5125)
2018-07-10 02:04:39 -04:00
Bryan Housel
696895fb98 Add forward/backward controls to Streetside viewer
re: #5125

There is some cleverness here to search for the best nearby bubble
instead of just relying on the next and previous sequence keys.
2018-07-10 01:10:18 -04:00
Bryan Housel
917c6dd6fc Add hires checkbox to toggle 512 and 1024 resolutions
Also added code to calculate quadkey maps for:
- 2048 (works but is pretty slow and not that better than 1024)
- 4096 (doesn't work)
2018-06-22 23:07:07 -04:00
Bryan Housel
e2e3588b3c Add high resolution checkbox 2018-06-22 18:27:15 -04:00
Bryan Housel
5975f0d902 Support resolution up to 2048, more zoom 2018-06-22 17:26:31 -04:00
Bryan Housel
b7df31b747 Update styles, reenter bubbles with new key when sequences connected 2018-06-22 15:32:28 -04:00
Bryan Housel
fb324dd865 Allow d3.geo.tile to fetch margin tiles (beyond viewport covering) 2018-06-22 12:24:40 -04:00
Bryan Housel
d41cf5e6d8 Wait to get canvas context until image is loaded, avoid some globals 2018-06-22 11:41:29 -04:00
Bryan Housel
abbffd5e5b Avoid recreating canvases when showing the layer, put under ms-wrapper not body 2018-06-22 09:12:07 -04:00
Bryan Housel
5f1c79c91d pacify linter, gitignore vscode settings 2018-06-22 01:20:15 -04:00
Bryan Housel
e145c1da01 Merge branch 'streetside' of https://github.com/jharpster/iD into jharpster-streetside 2018-06-22 00:59:07 -04:00
LorenMueller
1a93ed74ef new var for toggle of 4 or 16 images per face 2018-06-21 12:43:58 -07:00
Bryan Housel
4c812b6f35 Return an abortable request from jsonp_request 2018-06-19 23:09:06 -04:00
LorenMueller
81bddf27fa 'q' lib as dependency; updated streetside for higher resolution imagery 2018-06-19 15:22:56 -07:00
Bryan Housel
adc9c521df Final style tweaks, back to z16.5 to avoid hitting 1000 bubble limit 2018-06-13 16:39:41 -04:00
Bryan Housel
d859c1ca04 Try to preserve the viewer rotation when staying on the same sequence 2018-06-13 15:21:47 -04:00
Bryan Housel
e493bb4c64 Reset marker for panoramic/viewfield when switching steetview layer 2018-06-13 15:00:05 -04:00
Bryan Housel
23b6b15e64 Assemble sequences, adjust styles to better distinguish from osc 2018-06-13 13:03:11 -04:00
Bryan Housel
64732bf2f6 Begin adding sequences 2018-06-13 02:26:38 -04:00
Bryan Housel
813f8d096d Cleanup attribution CSS.. fix viewer northOffset / yaw 2018-06-12 15:31:49 -04:00
Bryan Housel
aeddddca15 Start viewer with correct compass yaw, adjust viewfield as user rotates 2018-06-12 14:18:20 -04:00
Bryan Housel
9915707503 Update viewfield rotation when adjusting viewer 2018-06-12 01:15:41 -04:00
Bryan Housel
9cfe6dd357 Fix highlighted and selected styles (_union needed array arguments) 2018-06-12 00:45:42 -04:00
Bryan Housel
f1ed0b3c68 skip duplicate bubbles 2018-06-11 23:34:34 -04:00
Bryan Housel
db06bdfa22 Reuse pannellum viewer instead of creating a new one with each click 2018-05-27 02:16:15 -04:00
Bryan Housel
48ea245e54 Localize "report a problem" message 2018-05-26 22:53:01 -04:00
Bryan Housel
c621d5ecaf Fix eslint issues, remove console.logs 2018-05-25 17:08:17 -04:00