John Firebaugh
d238e4eaeb
Convert Tail to a behavior
...
This avoids an extra mousemove listener in base modes.
2013-05-14 17:51:24 -07:00
John Firebaugh
16e05fd657
Revert "Don't use :active pseudo-class"
...
Now seeing this cause poor pan performance.
This reverts commit 9fafd6b56a .
2013-05-13 14:16:14 -07:00
John Firebaugh
21a51be56a
Only redraw vertices when selection changes
...
Fixes #1395
2013-05-13 12:53:03 -07:00
John Firebaugh
fcafce7517
Really fix area drawing
2013-05-13 12:19:51 -07:00
John Firebaugh
9fafd6b56a
Don't use :active pseudo-class
...
It's slow (500 ms recalculate style vs 1ms).
2013-05-13 09:49:29 -07:00
John Firebaugh
228dfbe993
Add URL flag for translate3d
2013-05-10 17:43:53 -07:00
John Firebaugh
1641f38632
Use context.mouse()
2013-05-09 21:55:05 -07:00
John Firebaugh
bb487ba0ee
Use fastMouse
2013-05-09 21:55:05 -07:00
John Firebaugh
1b72bba425
Workaround Opera SVG event dispatch bug
...
Opera will not dispatch mouse events to an absolutely
positioned SVG element:
http://bl.ocks.org/jfirebaugh/6fbfbd922552bf776c16
We need layers to be absolutely positioned in order to
obtain the correct positioning and z-order simultaneously.
Therefore we must wrap the SVG in a div and absolutely
position that instead.
Fixes #1416 .
2013-05-09 14:50:51 -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
John Firebaugh
786c2ab540
Cache transform status
2013-05-01 09:44:49 -07:00
John Firebaugh
464b387040
Bail out of translate3d in Opera
2013-04-26 17:46:19 -07:00
John Firebaugh
99fe5f615d
Use translate3d
2013-04-26 17:40:45 -07:00
John Firebaugh
62e53fc98b
Transform supersurface on pan/zoom
2013-04-26 17:40:45 -07:00
John Firebaugh
14b79d068e
Merge branch 'perfect-resampling'
...
Conflicts:
js/id/renderer/map.js
2013-04-26 17:35:04 -07:00
John Firebaugh
6941d1914b
Perfect oneway markers
2013-04-26 17:33:01 -07:00
John Firebaugh
86988a09a3
Fix vertex rendering
2013-04-25 15:43:16 -07:00
John Firebaugh
7d66e03c0b
Redraw hovered vertices more efficiently ( #1377 )
2013-04-25 13:53:31 -07:00
John Firebaugh
78aee5b6aa
Fix tests
2013-04-23 20:09:36 -07:00
John Firebaugh
1d5b13c45d
Don't draw when not editable
2013-04-23 17:52:09 -07:00
John Firebaugh
d31fa9ae70
Don't redraw vertices during pan/zoom transform
2013-04-23 17:31:53 -07:00
John Firebaugh
a2f86154ce
Also show vertices on hover in draw modes
2013-04-23 16:52:32 -07:00
John Firebaugh
66551ba903
Show vertices only for selected way ( #1022 )
2013-04-23 16:52:02 -07:00
Ansis Brammanis
036174d4dd
fix turning off tiger overlay, fixes #1349
2013-04-22 12:10:48 -04:00
John Firebaugh
20150cb9d4
Avoid retaining a graph reference
...
The supersurface event bindings retained a reference to the initial
graph, preventing it being GC'd after a save operation.
2013-04-20 15:18:14 -07:00
Tom MacWright
c79becb78a
Prevent error on localgpx.js. Fixes #1207
2013-04-19 15:35:24 -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
c8dcba31ad
Auto-zoom to entity specified by id param
2013-04-18 14:24:10 -07:00
John Firebaugh
77ce20c8c1
Add configurable image path
2013-04-16 17:20:21 -07:00
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