Commit Graph

336 Commits

Author SHA1 Message Date
John Firebaugh
fb16dc8af6 Custom d3 3.1 build (fixes #1232) 2013-04-02 15:00:32 -07:00
Ansis Brammanis
691156caec fix flash style 2013-04-02 14:19:02 -04: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
Ansis Brammanis
e9244159dc fix midpoint redrawing
Midpoints weren't being redrawn when the way was deleted
but both edge nodes still existed in other ways.
2013-03-28 18:30:10 -04:00
Ansis Brammanis
4a2cb9841d fix nudging during move operation 2013-03-28 15:03:31 -04:00
Tom MacWright
5c6398e773 Position bing logo, add attribution 2013-03-25 15:05:30 -04:00
John Firebaugh
e01d2e611f Display Bing copyrights 2013-03-21 12:23:57 -07:00
John Firebaugh
235cb52d26 Bing API supports JSONP 2013-03-21 11:39:33 -07:00
John Firebaugh
d4b923bd70 WIP on Bing copyright notices (#1096) 2013-03-20 17:52:47 -07:00
Tom MacWright
51d915c8a6 Refactoring and fixing layers
* Fixed opacity control
* Reorganize layer switcher
* Add GPX item to menu
* Allow user to cinch to GPX extent

Needs:

* Moderate refactoring
* Possibly a specific 'layerchange event'
* Dropping GPX on the map should be a behavior, probably, instead of in
  the layer
* Layers, if we want them, should be named rather than just have list
  indices
* A better icon for zoom to extent and for that icon to be properly
  placed
2013-03-20 15:59:15 -04:00
Tom MacWright
c94ec3b4a9 Local GPX file support, first push towards multilayer support. 2013-03-19 18:41:16 -04: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
53121c9842 Support JOSM style templates. Fixes #1023 2013-03-15 16:22:54 -04:00
Ansis Brammanis
6e0925003c add Maki icons to areas 2013-03-15 13:57:08 -04:00
John Firebaugh
3787185182 Rendering tagged points
At z16 and below, tagged points are rendered with a small
dot in the center. At z17 and above, they are rendered with
a maki icon.

See the test rendering page for examples.

Fixes #381.
2013-03-13 17:31:25 -07:00
John Firebaugh
60ff6fc021 Use maki icons for points (fixes #881) 2013-03-08 20:22:06 -08:00
Tom MacWright
19aba114e7 Fix overeager lookup. Fixes #907 2013-03-08 15:16:42 -05:00
Tom MacWright
b89d4215bf Merge pull request #928 from pnorman/patch-1
Change default max zoom to 20
2013-03-08 07:48:46 -08:00
Tom MacWright
0fafa340fe Start using d3 3.1.0
Update d3, use streams, d3.set, clip
Use clipping, fix side effects
2013-03-07 17:45:16 -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
Tom MacWright
ca74b111b0 Fix highlighting of layers and geocoding
* Fix highlighting of custom layer. Fixes #915
* Line up tabindexes. Fixes #922
2013-03-07 15:32:03 -05:00
John Firebaugh
84a4f9e5d2 Eliminate iD.layers 2013-03-06 15:51:16 -08:00
John Firebaugh
7cdfa8daf3 Remove duplicated code 2013-03-06 15:51:16 -08:00
Ansis Brammanis
32a78d4573 let centerEase be stopped by dragging 2013-03-06 14:42:56 -05:00
Ansis Brammanis
8fc4cffd20 Revert "shorter wait before redrawing after zooming"
This reverts commit 7a22e62426.
2013-03-06 13:12:46 -05:00
Ansis Brammanis
f8f86e7a42 Avoid style recalculation in resetTransform 2013-03-06 12:11:46 -05:00
Ansis Brammanis
7a22e62426 shorter wait before redrawing after zooming
Feels a lot snappier.
Slightly longer delay when panning.
2013-03-06 12:04:41 -05: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
John Firebaugh
417e21ab05 Remove unused 2013-03-05 16:02:27 -08:00
Tom MacWright
e071c15579 Remove unused variables and arguments 2013-03-05 16:29:23 -05:00
Tom MacWright
71a4c5a383 Fix jshint errors - plz do not use unnecessary magic 2013-03-04 12:08:54 -05:00
John Firebaugh
60a290282c Clip lines with Cohen-Sutherland algorithm
This yields a 10x paint performance increase at
#map=18.88/38.85208/-76.72632, as measured with
Chrome Canary's "Continuous Page Repainting" mode.

Fixes #885.
2013-03-03 18:25:42 -08:00
Ansis Brammanis
478696a189 Offsets are now relative to zoom level 2013-02-28 15:57:37 -05:00
Ansis Brammanis
0090920d41 maintain center when map resized 2013-02-28 14:35:33 -05:00
Ansis Brammanis
4081d1234e set centerzoom before drawing map 2013-02-28 13:12:00 -05:00
John Firebaugh
b7894ceaf0 Calculate participating ways in AddMidpoint
Due to differenced redraw, midpoint.ways was getting stale,
so sometimes dragging a midpoint didn't add the new node to
all ways. Better to calculate participating ways when needed.
This also simplifies the code for adding a midpoint via double
click. It does make filtering midpoints on redraw a bit more
expensive, but a cursory profile didn't show it being a problem.

Fixes #763.
2013-02-27 20:41:38 -08:00
John Firebaugh
571edc707d d3.tail -> iD.ui.Tail 2013-02-27 17:55:23 -08:00
John Firebaugh
e154a94ef0 Draw only visible midpoints (#804) 2013-02-17 11:27:36 -08:00
Ansis Brammanis
147fce1f49 Merge branch 'tree-intersects'
Conflicts:
	js/id/behavior/lasso.js
2013-02-15 13:40:01 -05:00
Ansis Brammanis
7102fea04d add history.intersects to context 2013-02-13 18:12:53 -05:00
Tom MacWright
b8c79b8b48 Fix map.extent 2013-02-13 18:12:38 -05:00
Tom MacWright
eb2a133ac6 Hate multiline bracketless ifs 2013-02-13 17:57:58 -05:00
Ansis Brammanis
e60c9ab16b Fix zoom limitation while drawing 2013-02-13 17:31:23 -05:00