Commit Graph

29 Commits

Author SHA1 Message Date
Bryan Housel
e149c6be8e Remove old Mapillary signs code and assets
(closes #4145)
2018-06-07 01:35:12 -04:00
Bryan Housel
b7997d3c64 Begin replacing mapillary signs html with svg spritesheet
(re: #4145)
2018-06-06 23:16:49 -04: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
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
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
bde4d6510f Update mapillary tests 2017-07-14 00:53:44 -04:00
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
f800e5afbc Remove unnecessary window parameter to Context 2016-11-10 15:19:03 -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
b2c8f72c95 no-native-reassign -> no-global-assign 2016-10-29 14:42:04 -04:00
Bryan Housel
cf11c95354 Fix Mapillary sign placement on Chrome, Safari 10 2016-10-29 00:59:51 -04:00
Bryan Housel
1d03414b80 Allow forced utilDetect(), useful for testing 2016-10-18 21:56:24 -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
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Bryan Housel
482b4d7cbe mock userAgents in a way that works in both Phantom and real browsers 2016-09-09 14:59:55 -04:00
Bryan Housel
7ca6d06254 Replace iD global with iD.Context() module (#3254) 2016-07-19 10:15:32 -04:00
Kushan Joshi
fc680a2e9a external modules for services 2016-07-06 14:39:58 -04:00
Bryan Housel
5e6a1bdee5 Fix rbush tests.. Disable tests that fail because of sinon.spy issue 2016-07-02 21:59:36 -04:00
Bryan Housel
03558c7e40 Bump dependencies, fix tests
(commented out 2 failing tests in mapillary service related to sinon spy)
2016-06-25 00:50:20 -04:00
Kushan Joshi
3f3b287d62 Remove linting errors spec/services 2016-06-15 18:26:11 +05:30
Bryan Housel
e364b7ec30 Show loading spinner in loadchanged, update selection in nodechanged 2016-05-31 17:16:17 -04:00
Bryan Housel
e57914d77e WIP: preload viewer when layer enabled, still bad issues with slow load timing 2016-05-30 03:20:43 -04:00
Bryan Housel
a99f54b83b WIP: simplify code, attempt to preload viewer 2016-05-29 15:00:46 -04:00
Bryan Housel
1e97135245 Update tests for mapillary service, blacklist Null Island data 2016-04-10 16:01:59 -04:00
Bryan Housel
0a238dbfcc Load traffico stylesheet dynamically 2016-02-17 12:03:51 -05:00
Bryan Housel
3ad9c29a35 Add test coverage for mapillary service 2016-02-16 15:59:28 -05:00
Bryan Housel
f173441fe3 WIP: Mapillary service 2016-02-08 15:46:37 -05:00