Commit Graph

77 Commits

Author SHA1 Message Date
John Firebaugh 4b3db596d7 Remove unnecessary no-op pans 2013-11-22 10:52:58 -08:00
tyr a3d44789f6 rudimental support for providing gpx-files via urls
see #1965 (esp: https://github.com/systemed/iD/issues/1965#issuecomment-29045054)
2013-11-22 13:32:08 +01:00
John Firebaugh 12769d2fc1 Calculate background source name (fixes #1935) 2013-10-29 16:13:40 -07:00
John Firebaugh 1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh 8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
John Firebaugh a5311b5f6c Show attribution for overlay layers (fixes #1909) 2013-10-21 12:31:48 -07:00
John Firebaugh a9964589fc Add a button to trigger file browser for GPX (fixes #1758) 2013-10-15 13:15:35 -04:00
Aaron Lidman 1899eb361c Add None tile layer
Fixes #1472
2013-10-14 12:08:36 -04:00
John Firebaugh 4e8cb0b97f Pull imagery from editor-imagery-index 2013-08-27 11:07:46 -07:00
John Firebaugh 77985d65f8 Exclude Locator Overlay from imagery_used 2013-08-23 12:51:58 -07:00
John Firebaugh d9142271ac Add default "Locator Overlay" layer
A layer that is by default visible at <z16 and can
orient you with major roads, cities, borders, etc.

Fixes #1301
2013-08-22 12:53:57 -07:00
John Firebaugh 0180367399 Refactor BackgroundSource 2013-08-22 12:53:57 -07:00
John Firebaugh 7b2eaa2fd8 Remove unused 2013-08-22 11:00:14 -07:00
John Firebaugh 476509111f Fix "Custom" radio button state 2013-07-25 11:58:11 -07:00
John Firebaugh 5f02f348de Include GPX and overlay layers in imagery_used
Fixes #1463
2013-07-25 11:51:55 -07:00
John Firebaugh 7f3f648c1c Support multiple overlays in hash 2013-07-25 11:29:31 -07:00
John Firebaugh 1168053cc2 Coalesce multi-extent imagery sources 2013-07-25 11:14:53 -07:00
John Firebaugh 5e64f6b95d Support multiple overlay layers 2013-07-15 14:05:11 -07:00
John Firebaugh 734d53e08b Refactor background in preparation for multiple overlays 2013-07-15 14:05:11 -07:00
John Firebaugh ab566c8fa7 Respect tile layer minimum scaleExtent
Rather than attempting to render an exponential number
of tiles for each z less that the minimum, render none.
2013-07-12 15:44:59 -07:00
John Firebaugh bba761d8ea size -> dimensions
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00
John Firebaugh e339bd5df3 Fix tile overzooming 2013-06-12 16:49:50 -07:00
John Firebaugh 79ae9346e7 Simplify layer structure
Also, always give SVG elements an explicit size -- seems
to be necessary for Firefox to render them correctly.

Fixes #1436.
2013-05-08 13:10:55 -07:00
Ansis Brammanis 036174d4dd fix turning off tiger overlay, fixes #1349 2013-04-22 12:10:48 -04:00
Tom MacWright f1604df4d0 Add custom layer option to URL hash, fixes #1024.
Layer format is custom:http://url.com/{z}/{x}/{y}.jpg
2013-04-18 17:34:27 -04:00
John Firebaugh fb16dc8af6 Custom d3 3.1 build (fixes #1232) 2013-04-02 15:00:32 -07:00
Ansis Brammanis e13305b162 Merge pull request #1206 from systemed/background-overlay
support for overlay layers
2013-03-29 15:46:34 -07:00
Ansis Brammanis eda5836554 imagery offsets affect only that layer
fixes #1202
2013-03-29 17:18:26 -04:00
Ansis Brammanis 2f04868770 add support for overlay layers
This is mostly added for the Tiger2012 road overlay
2013-03-29 16:42:53 -04:00
John Firebaugh e01d2e611f Display Bing copyrights 2013-03-21 12:23:57 -07:00
Tom MacWright 96cef1d3cb Refactor source menu into proper control and fill it in intially.
Fixes #1084
2013-03-19 13:47:39 -04:00
Tom MacWright 19aba114e7 Fix overeager lookup. Fixes #907 2013-03-08 15:16:42 -05:00
pnorman 3fadf873a3 Change default max zoom to 20
A lot of imagery goes to z20 now. Where the max zoom is not known it should be set high to allow the imagery to be used at its maximum resolution

Where the source imagery does not support up to z20 it will fall back to higher zoom levels. It is unlikely that editors will be zoomed in far past the max zoom of the imagery.

This does not replace the lack of max zoom support for preset imagery layers (issue #784)
2013-03-07 13:59:42 -08:00
John Firebaugh c36b2c9269 Avoid changing tile positions in the load/error callbacks
Fixes #644
2013-03-05 16:19:04 -08:00
John Firebaugh 9f85daaffc Simplify 2013-03-05 16:08:37 -08:00
John Firebaugh a84d60f36d Clear cache when changing source 2013-03-05 16:08:37 -08:00
John Firebaugh 50de147fb0 Camel case 2013-03-05 16:08:37 -08:00
John Firebaugh 98589408bd Remove unused 2013-03-05 16:04:17 -08:00
John Firebaugh 5b5f3fe2e5 Use consistent selection argument style 2013-03-05 16:02:27 -08:00
Tom MacWright e071c15579 Remove unused variables and arguments 2013-03-05 16:29:23 -05:00
Ansis Brammanis 478696a189 Offsets are now relative to zoom level 2013-02-28 15:57:37 -05:00
Tom MacWright d9b5816530 Store background setting in hash. Fixes #632 2013-02-09 17:34:44 -05:00
Tom MacWright 5139de969e Slow-remove tiles, pay attention to parentNode, refs #686 2013-02-08 13:48:51 -05:00
Tom MacWright 8d8ec84316 Fix inadverted .remove call. Fixes #686 2013-02-08 13:40:57 -05:00
Tom MacWright 2e8e7ad1cc Use css transitions for tiles 2013-02-08 11:20:11 -05:00
Ansis Brammanis 0804da824a Fix background test 2013-02-07 18:41:17 -05:00
Ansis Brammanis 28c541067b Fix #680, fix use of imagery scaleExtents 2013-02-07 17:58:28 -05:00
Tom MacWright f12b7d0fca Console... 2013-02-05 17:52:42 -05:00
Tom MacWright 930ed89229 Don't trim the cache. Should be fine. Probably. 2013-02-05 17:49:45 -05:00
Tom MacWright ab7290a865 Fix re-requesting failed tiles. Fixes #594 2013-02-01 11:31:31 -05:00