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
John Firebaugh
3bdd314eb8
Fix global leak
2013-01-31 12:42:37 -05:00
Tom MacWright
2c2efe3b65
Background refinements. Fixes #561 , fixes #456
2013-01-31 11:02:41 -05:00
Tom MacWright
33c541e926
Fix upTile loading
2013-01-24 18:06:54 -05:00
Tom MacWright
b6fd9cf990
Prevent user dragging
2013-01-24 17:50:08 -05:00
Tom MacWright
df06148355
Look farther up for up tiles
2013-01-22 18:56:09 -05:00
Tom MacWright
1c757a7c20
Improve background cache logic. Fixes #411
2013-01-16 17:36:45 -05:00
Tom MacWright
9fde54c2c7
Inline image css to fix selector perf, was about 3%
2013-01-09 12:53:01 -05:00
Tom MacWright
fb9052818d
Fix global leaks
2013-01-04 17:44:39 -05:00
Tom MacWright
fdc64c232a
Implement layer offset nudging. Fixes #292
2013-01-04 17:35:26 -05:00
Tom MacWright
3f8a872d79
Double click to add detail to lines. Fixes #298
2013-01-04 12:36:23 -05:00
John Firebaugh
2c40de62be
Add iD.behavior.drag
...
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:
* The `origin` function is expected to return an [x, y] tuple rather than an
{x, y} object.
* The events are `start`, `move`, and `end`.
(https://github.com/mbostock/d3/issues/563 )
* The `start` event is not dispatched until the first cursor movement occurs.
(https://github.com/mbostock/d3/pull/368 )
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00
Tom MacWright
554c4c8212
Fix bad tile on load. Fixes #192
2012-12-12 18:45:51 -05:00
Tom MacWright
54ff10ca6a
Only listen for load once. Remove tiles on error
2012-12-06 18:01:57 -05:00
Tom MacWright
7f6a06f9bb
Move scaleExtent into background sources
2012-12-06 16:10:44 -05:00
Tom MacWright
f9455270f1
Do pyramid loading in both directions, use transforms for tile sizing.
...
Fixes #190
2012-12-06 15:07:37 -05:00
Tom MacWright
5c6c271394
Split background sources into background_source
2012-12-06 11:12:06 -05:00
Tom MacWright
3b79854399
Fix tests
2012-12-06 10:46:21 -05:00
Tom MacWright
877ae4c32e
Add osm mapnik, setup toggling a bit.
2012-12-06 10:39:08 -05:00
Tom MacWright
2f11e74ba1
Support other subdomains, tiger2012 tiles
2012-12-06 10:27:26 -05:00
Tom MacWright
731df3ce41
Test backgroundsource, favor not making object-functions.
2012-12-05 17:34:47 -05:00
Tom MacWright
25557cac12
Fine-tune zoom and center, make them properly match up with other maps
2012-12-04 18:13:23 -05:00
Tom MacWright
3ec03e2526
Use d3.geo.tile in connection. Fixes #103
2012-12-04 12:36:44 -05:00