Bryan Housel
1c9719d763
Avoid requesting blank tiles from EsriWorldImagery
...
(closes #4327 )
This allows the real tiles to overzoom, so the user does not see
tiles with the "map data not yet available" message
2017-09-09 08:51:13 -04: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
3464a46df6
All imagery layers should just be owned by rendererBackground()
...
This moves management of the custom layer out of uiBackground()
2017-07-20 16:07:10 -04:00
Pierre GIRAUD
5b89003101
Remember the chosen custom background when set by url
2017-07-20 09:35:30 +02:00
Bryan Housel
a15821ecf1
Use single Custom backround source, and add template() accessor
...
Before, each time the user switched to the custom source, it would
create a brand new custom source with the offset set to [0,0]
(closes #3982 )
2017-07-10 23:25:40 -04:00
Bryan Housel
7358766d4d
Don't update hash, imagery_used when changing background in walkthrough
...
(closes #3936 )
2017-03-30 00:38:03 -04:00
Martin Raifer
224059bdee
fix typo: iterate over imagery blacklist
...
see https://github.com/openstreetmap/iD/issues/3858#issuecomment-282130145
2017-02-24 13:45:02 +01:00
Bryan Housel
aa3c1c8431
All sources have id now, so compare by id
...
Fixes an issue where a source might not compare strictly equal e.g.:
1. custom imagery gets blacklisted and replaced with a
`rendererBackgroundSource.None()`
2. which doesn't strictly === the `rendererBackgroundSource.None()` on the
background pane switcher
3. so the radio button would not appear checked
2016-12-04 21:47:46 -05:00
Bryan Housel
a7ac44f6e8
Refactor imageryBlacklists so it can be called without triggering a GET
...
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized. Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00
Bryan Housel
c353684ad3
Add imagery blacklist tests to rendererBackground#baseLayerSource
2016-12-04 13:55:18 -05:00
Bryan Housel
e331bb7f8c
Use imagery ids instead of names, update blacklist, npm run imagery
2016-11-17 14:16:52 -05:00
Bryan Housel
ff5372490b
Fix url parser to work with lat/lng when checking for "best" imagery
...
(closes #3586 )
2016-11-15 13:13:28 -05:00
Bryan Housel
93d50b4e87
Use live bound object for imagery array, remove context.imagery() accessor
...
Also update documentation, closes #3359
2016-11-14 11:16:45 -05:00
Bryan Housel
1c3e778baf
Check for rtl url parameter for testing (rather than regex)
2016-10-08 12:45:01 -04:00
Bryan Housel
0d0e54fdff
Fix more namespaces that were missed in the first pass
2016-10-04 21:15:30 -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
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
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Kushan Joshi
39c82af158
Sort modules [eslint rule]
2016-07-06 12:12:08 +05:30
Kushan Joshi
6a56ad547c
external modules for renderer
2016-06-22 12:34:43 +05:30
Kushan Joshi
46d68bca87
modularize iD.renderer
2016-06-17 12:53:19 +05:30