Commit Graph

48 Commits

Author SHA1 Message Date
Jordane Pelloux-Prayer
ca493ec47c fixes #4804: do not stop mapillary autoplaying if _mlyViewer is not initialized 2018-02-16 13:01:32 +01:00
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
18ab596f58 Improve int'l date/time strings on imagery and history tools
(closes #4594)
2017-12-06 15:27:54 -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
095dc19164 Add sequence linestrings to mapillary photo layer too 2017-11-06 21:32:03 -05:00
Bryan Housel
ccc8153370 Standardize on "@user | captured_at | sitelink" for attribution 2017-11-05 22:46:53 -05:00
Bryan Housel
6dd71ebf91 Fix loading of images from OpenStreetCam API, add viewer
\o/
2017-11-03 16:48:18 -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
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
70d0a68c6d Use context.asset() to generate path to Mapillary image sprite 2017-06-09 10:53:48 -04:00
Nikola Plesa
9c772a1058 Update to Mapillary API v3, use traffic signs from Mapillary sprites 2017-05-17 11:18:46 +02: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
cf11c95354 Fix Mapillary sign placement on Chrome, Safari 10 2016-10-29 00:59:51 -04:00
Bryan Housel
5c5e90c411 Upgrades for mapillary 2.0.0 2016-10-28 14:23:21 -04:00
Bryan Housel
6597a6e108 Don't cache browser detection anymore in Mapillary service
This means we can mock the useragent and test signsSupported
2016-10-25 21:41:34 -04:00
Bryan Housel
efd9e6df4b Memoize and avoid extra calls to utilDetect() 2016-10-18 21:48:39 -04:00
Bryan Housel
053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
npmcdn-to-unpkg-bot
3df007a9f4 Replace npmcdn.com with unpkg.com 2016-10-11 09:01:45 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
a6d683eaf7 Code cleanups in svg, ui for selection merging, fix Mapillary. 2016-09-17 23:26:49 -04:00
Tom MacWright
ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Bryan Housel
244dd1f46e Cleanup .eslint in spec folder 2016-07-19 12:31:02 -04:00
Tom MacWright
604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Bryan Housel
cb71e90384 Module for iD.Detect() (#3243)
* convert iD.Detect() iife to a module

* iD.Detect() should return loaded locale (except for 'en')

(The previous code was a hack to replace the detected locale with the loaded
locale.  Now that Detect is a module, we can not replace the detected locale
from external code, but we can have Detect() return the locale we really want)
2016-07-13 09:15:47 -04:00
Kushan Joshi
fc680a2e9a external modules for services 2016-07-06 14:39:58 -04:00
Bryan Housel
197b936d50 Upgrade rbush to 2.x 2016-07-01 23:12:51 -04:00
Bryan Housel
2e10c9e21e Eliminate vendored rbush library
(re: #3180)
2016-06-26 21:34:10 -04:00
Bryan Housel
82f0a81308 Resolve module variable collisions 2016-06-16 11:11:00 -04:00
Bryan Housel
0c0642e321 Attempt to put services into module 2016-06-16 11:11:00 -04:00