Bryan Housel
f54d201eb2
Stop sequence from playing when the Mapillary viewer is hidden
...
(closes #4707 )
2018-01-26 16:59:32 -05:00
Bryan Housel
db2d165a17
Support fallback mode for Mapillary when WebGL disabled
...
(closes #3804 )
2018-01-26 16:27:48 -05:00
Bryan Housel
9ebf3b11a4
Don't initialize Mapillary viewer with a key
...
(closes #4536 )
This avoids binding the viewer to an image key that might not be
fully processed, which gets the viewer into a bad state.
Instead, we initialize the viewer with a `null` image key and
issue `moveToKey` immediately.
This commit also adds exception handling for moveToKey.
2018-01-26 15:45:53 -05:00
Bryan Housel
ac86869b4a
Add conflict checking progress, guard code for user authentication
2018-01-05 18:11:49 -05:00
Bryan Housel
a63c4a72fe
Improvements to save flow
...
- Attempt fast save first, only perform conflict resolution if necessary (re: #3056 )
- Block reentry of save, and dont keep focus on save button (closes #4641 )
- Refactor modeSave() for code clarity (avoid shared state in closure variables)
2018-01-05 15:11:44 -05:00
Bryan Housel
437893ebb8
Don't reenter putChangeset, allow reuse of open changeset id
...
We are going to start trying an opportunistic save, then only
start the conflict resolution stuff if the server returns a 409.
Reusing an already open changeset makes sense in this situation.
2018-01-04 23:27:00 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
18ab596f58
Improve int'l date/time strings on imagery and history tools
...
(closes #4594 )
2017-12-06 15:27:54 -05:00
Bryan Housel
cfa1759367
Add scroll zooming support to the OpenStreetCam viewer
...
(closes #4561 )
2017-11-25 00:11:16 -05:00
Bryan Housel
9b705a6375
Don't call async callbacks after connection resets/switches
...
(closes #4288 )
2017-11-14 21:30:01 -05:00
Bryan Housel
91f9da0f06
Switch openstreetcam from http to https to avoid mixed content issues
...
(closes #4527 )
2017-11-14 13:42:23 -05:00
Bryan Housel
1dd437a1f2
Hide mapillary-js attribution and just handle it in iD
...
(closes #4526 )
What we were doing before was d3.selecting the attribution line and
inserting the capture date into it. This was confusing the viewer
(which updates asynchronously) so that the sitelink would never update.
To make things easier, we'll just hide the viewer's built in attribution
and construct the attribution line the way we want it.
2017-11-14 11:32:42 -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
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
2947dcc2fb
Add tests for Openstreetcam service and Mapillary sequences
2017-11-06 23:11:00 -05:00
Bryan Housel
095dc19164
Add sequence linestrings to mapillary photo layer too
2017-11-06 21:32:03 -05:00
Bryan Housel
d44b754656
Implement sequence step forward/backward
2017-11-06 16:06:25 -05:00
Bryan Housel
5f2b257ddc
Swap clockwise/counterclockwise rotation buttons, change glyphs
2017-11-06 15:52:08 -05:00
Bryan Housel
e439ea406a
Cache sequence info, draw sequence linestrings
2017-11-06 15:48:44 -05:00
Bryan Housel
eefbb68dda
Add viewer controls.. Rotation works and will cache val per sequence
2017-11-06 10:41:17 -05:00
Bryan Housel
ccc8153370
Standardize on "@user | captured_at | sitelink" for attribution
2017-11-05 22:46:53 -05:00
Bryan Housel
51fa9280a4
Add attribution line for openstreetcam
2017-11-03 21:20:14 -04:00
Bryan Housel
dd75737fce
Add loading spinner
2017-11-03 20:32:04 -04:00
Bryan Housel
6dd71ebf91
Fix loading of images from OpenStreetCam API, add viewer
...
\o/
2017-11-03 16:48:18 -04:00
Bryan Housel
00b30e29f0
WIP: Add OpenStreetCam support
...
todo: Need to figure out API issue with bbox, then imageviewer
2017-11-02 22:04:47 -04:00
Bryan Housel
be02b1c530
Better placeholders for electrical fields, switch some to combo
2017-10-24 22:30:07 -04:00
Bryan Housel
1074c4ff9a
Merge branch 'master' into lodash-es
2017-09-27 14:47:31 -04:00
Bryan Housel
50da78c1fd
Convert lodah-es and d3 to named imports for services
2017-09-25 15:10:47 -04:00
Bryan Housel
bf3fbd21d1
Comment out debugging code from #4376
2017-09-25 11:56:50 -04:00
Kushan Joshi
ddbc9df113
Sort mapillary’s rbush result
2017-09-25 18:20:43 +05:30
Bryan Housel
b7d98b94fb
loadEntity loadEntityVersion and loadMultiple all should ignore entityCache
2017-08-24 21:00:39 -04:00
Bryan Housel
cd05c51432
loadEntity can use entityCache, but loadEntityVersion should not
2017-08-24 15:02:12 -04:00
Bryan Housel
cabc98649f
Clear entity id cache on reset()
2017-08-24 13:10:51 -04:00
Kushan Joshi
82686b10a5
Add requestIdleCallback
2017-08-22 17:38:42 +05:30
Kushan Joshi
442f0831b1
add enitity cache
2017-08-21 15:56:50 +05:30
Bryan Housel
99a3741b0c
Better isolation of services, to avoid hitting network during test runs
...
1. All services are disabled in testing now to prevent network accesses
2. Only services are enabled when needed to test something
3. Many changes throughout code to allow iD to run with services disabled
(e.g. check for osm service instead of assuming context.connection() will work)
4. Actually export the services so we can disable and enable them
2017-08-09 22:04:09 -04:00
Bryan Housel
fbff5195e0
Append capture date instead of inserting it
...
Messing with DOM node order seems to break the Mapillary viewer's ability to
correctly set the user and photo links
2017-07-16 11:22:27 -04:00
Bryan Housel
ec4b00b7e1
Call selectedImage again from nodeChanged to update detections, capturedAt
2017-07-16 11:15:43 -04:00
Bryan Housel
30e5b18d6b
Convert UTC to local time when displyaing Mapillary timestamp
2017-07-16 10:54:27 -04:00
Bryan Housel
346b5e9b36
Add capture date on the attribution line at bottom of Mapillary viewer
...
(closes #4156 )
2017-07-15 03:17:47 -04:00
Bryan Housel
802d5707d6
Style detections for better visibility
2017-07-14 02:32:35 -04:00
Bryan Housel
590ab7d8b9
Detection cache can store source data, not instantiated tag objects
2017-07-14 01:20:26 -04:00
Bryan Housel
30a12fb1be
Cache images->detections, show multiple detections per image
2017-07-13 23:47:44 -04:00
Bryan Housel
fa9df01155
Guard code for mapillaryViewer, local scope for tagComponent
2017-07-12 17:31:19 -04:00
Kushan Joshi
57410b264b
add mapillary detections
2017-07-12 16:21:57 +05:30
Bryan Housel
b6c2645409
Add history urls to osm service and more URL tests
2017-06-30 00:52:05 -04:00
Bryan Housel
fdd6b329a8
Get changeset, timestamp, uid for all elements; changeset_count for users
2017-06-29 22:02:54 -04:00
Bryan Housel
1c303edf18
Add generic reverse geocoder function to nominatim service
2017-06-29 01:23:33 -04:00
Bryan Housel
70d0a68c6d
Use context.asset() to generate path to Mapillary image sprite
2017-06-09 10:53:48 -04:00