Bryan Housel
5a8709bc67
Treat osm layer like other vector layers and give it a toggle
...
(closes #2904 )
2017-09-18 22:03:34 -04:00
Bryan Housel
12be1a8161
pacify eslint
2017-09-13 09:03:16 -04:00
Bryan Housel
1fcceeb0e8
Move string processing into background_source
2017-09-12 17:02:17 -04:00
Bryan Housel
9d60d9c6b0
Track inflight jsonp requests and avoid reissuing them
2017-09-12 15:00:32 -04:00
Bryan Housel
6addbba340
reorganize metadata object, change display of meters
2017-09-12 14:51:01 -04:00
john gravois
5f341366e7
display additional metadata from Esri World Imagery
...
* getVintage() becomes getMetadata()
* ignore a couple unrelated lint nags
* add source description, resolution and accuracy info to debug panel
2017-09-11 09:51:07 -07:00
jgravois
7521369ece
add support for displaying esri metadata
2017-09-09 21:59:07 -07:00
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
bcfcfdea35
Merge branch 'master' into performance
2017-08-24 12:06:36 -04:00
Kushan Joshi
909b72a39e
cleaning up
2017-08-24 17:03:04 +05:30
Kushan Joshi
91a569985d
playing with map render
2017-08-24 17:02:49 +05:30
Bryan Housel
8ed2d18474
Apply imagary offset to projection before tiling background layer
...
(closes #4232 )
2017-08-18 22:53:11 -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
881f979d46
Return to browse mode when zooming out beyond edit limit
...
(closes #4184 )
2017-08-08 18:14:23 -04:00
Bryan Housel
f52a356b46
Keep previous mousemove event updated while zoompanning
...
(closes #4155 )
2017-07-22 01:00:56 -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
3043323ba9
Rename infobox to info-panels
2017-07-04 02:14:30 -04:00
Bryan Housel
cb249cc28b
Rename panel Imagery -> Background, change key G -> B
2017-07-04 01:18:45 -04:00
Bryan Housel
1f826851b2
Make tileCenter return the point actually at the tile center
...
Then use css to adjust the position of the debug div
2017-07-03 16:03:41 -04:00
Bryan Housel
b9df6df03f
Imagery vintage improvements:
...
- Cache vintage lookups from Bing API
- Actually sample a tile at the center of the viewport,
rather than just divinding tiles/2 (not a good guess)
- Refactor the start-end range code into one place
2017-07-03 15:12:59 -04:00
Bryan Housel
7df458e4df
Display imagery vintage when tile debugging is enabled..
2017-07-02 10:21:46 -04:00
Bryan Housel
54a8ae439a
Include start/end imagery dates from editor-layer-index
2017-07-01 02:31:08 -04:00
Bryan Housel
0d27743b81
Improve formatting for imagery capture dates
2017-07-01 00:47:16 -04:00
Bryan Housel
150985a57d
Fetch imagery vintage from Bing source, add info to location panel
2017-06-30 18:52:17 -04:00
Bryan Housel
c961788a5b
Fix translation for imagery with a '.' in the id
...
(closes #4112 )
2017-06-19 23:35:34 -04:00
Bryan Housel
8f6bd5fb14
Show icons from the editor-layer-index, remove old Bing icon
2017-06-16 12:04:54 -04:00
Bryan Housel
3d208311bd
Change imagery Transifex to YAML, use translated name and description
2017-06-16 00:51:04 -04:00
Bryan Housel
e88aeadd32
Undo/Redo handler shouldn't switch modes unless already in browse/select
2017-05-03 16:07:16 -04:00
Bryan Housel
992a6aa958
More guard code to protect against user undos and mode changes
2017-04-15 00:32:36 -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
Bryan Housel
697cef1b06
Fix zoom/pan for the intro curtain
...
(closes #2386 )
2017-03-22 15:57:26 -04:00
Bryan Housel
4903d495b7
Draw selected items last, so halos are more visible
...
(see #2914 )
2017-03-21 02:17:04 -04:00
Bryan Housel
2c11b693b8
Merge branch 'edit_menu'
2017-02-25 15:29:01 -05: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
5ba72292ac
Fix mouse xy calculation for mousewheel scroll normalization
2017-02-23 21:45:36 -05:00
Bryan Housel
334188c6fe
Normalize mousewheel zooming across browsers
...
(closes #3029 )
2017-02-23 20:11:21 -05:00
Bryan Housel
f7c3de9545
Preserve backward compability with radial menu
...
Old menu behavior can be restored with 2 cookies:
- `edit-menu-style=radial` - Display menu as a radial menu, limited to 8 items
- `edit-menu-show-always=1` - Show menu on all clicks, not just contextmenu/right
2017-02-22 16:50:42 -05:00
Bryan Housel
e756520bd8
suppressMenu(true) is now the default
2017-02-21 15:47:22 -05:00
Bryan Housel
c5383c1f55
Darker unintrusive flash.. WIP flash operations on keypress
2017-02-10 16:39:08 -05:00
Kushan Joshi
ca25a34987
semver compliance for edit_menu
2017-02-09 13:03:12 +05:30
Bryan Housel
1a5f155e39
Fix zoom behavior bind in map, delay removals to avoid flicker
2017-01-18 23:44:03 +05:30
Bryan Housel
6ca4b13304
Store view transform and selectedIDs w/history, and undo/redo them
...
(closes #2204 )
2016-12-10 23:25:58 -05:00
Bryan Housel
6b18ea76ff
Hide labels along selected ways, or near selected vertices
...
(closes #3636 )
2016-12-07 15:38:14 -05:00
Bryan Housel
77b78a73ca
Complete orphaned d3-zoom gestures that were preventing clicks
...
(closes #2151 ), (see also d3/d3-zoom#60 , d3/d3-brush#18 )
Intercept `mousedown` and check if there is an orphaned zoom gesture.
This can happen if a previous `mousedown` occurred without a `mouseup`.
If we detect this, dispatch `mouseup` to complete the orphaned gesture,
so that d3-zoom won't stop propagation of new `mousedown` events.
2016-12-06 16:54:42 -05: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
80d9cd6c72
Use traditional interpolation for zoom interpolator, not fly-out-in
2016-11-23 09:55:16 -05:00