Commit Graph

145 Commits

Author SHA1 Message Date
Saman Bemel-Benrud 426c897248 commit flow work 2013-03-21 19:19:17 -04:00
Ansis Brammanis 9a309c5009 don't hardcode sprite size
it can change any time the sprite is rebaked
2013-03-20 17:09:25 -04:00
saman bb de90e76e84 adding forward icon. 2013-03-19 00:37:34 -04:00
Ansis Brammanis 0a7b19efdc nicer label halos
renders a second text with wider stroke
instead of drawing a block halo with a rect or path
2013-03-15 15:39:10 -04:00
John Firebaugh 9c5a830633 Reduce midpoint shadow 2013-03-15 12:14:36 -07:00
John Firebaugh 31991d69df Simplify 2013-03-15 12:14:36 -07:00
Ansis Brammanis c34f48c207 render tunnels below other lines 2013-03-15 14:18:17 -04:00
Ansis Brammanis 747b7eda47 fix changing area icons 2013-03-15 14:14:34 -04:00
Ansis Brammanis 6e0925003c add Maki icons to areas 2013-03-15 13:57:08 -04:00
Ansis Brammanis 0c80b8cd90 merge maki and perset icon sprites 2013-03-14 20:01:31 -04:00
John Firebaugh 5cbda264f8 Fix vertex rendering 2013-03-14 15:08:08 -07:00
John Firebaugh 51a217caa2 Refine tagged vertex rendering
Don't render tagged vertices for which we don't have
an icon as the 'marker' icon. Marker shape is for points.
2013-03-14 13:35:24 -07:00
John Firebaugh 364d93693b Use traditional marker shape for points (fixes #172) 2013-03-14 11:22:10 -07: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
Saman Bemel-Benrud 0faf9d114d adding universal preset form icons to sprite. 2013-03-13 19:45:05 -04:00
Saman Bemel-Benrud 0a9c3cb047 fix radial menu controls. 2013-03-13 16:04:56 -04:00
Ansis Brammanis 94391cc087 remove fill pattern when changing tags
fixes #996
2013-03-13 11:55:15 -04:00
John Firebaugh be567fb028 Render landuse=farm and landuse=farmland identically
See http://www.openstreetmap.org/user/Harry%20Wood/diary/14079
for an entertaining rant on this subject.
2013-03-12 13:12:07 -07:00
John Firebaugh 113ae58de8 Fix up tests 2013-03-11 15:45:27 -07:00
John Firebaugh 8c79d9672e Alternate SVG sprite technique for operations (fixes #956) 2013-03-10 20:02:18 -07:00
Ansis Brammanis 9cb2fb13b5 use cemetery pattern for graveyards 2013-03-10 14:44:46 -04:00
Ansis Brammanis 6440905e36 add transparency for highway tunnels 2013-03-10 00:45:22 -05:00
John Firebaugh 60ff6fc021 Use maki icons for points (fixes #881) 2013-03-08 20:22:06 -08:00
Ansis Brammanis 70780a37a5 set pattern fils directly on element, for firefox 2013-03-08 01:36:27 -05:00
Ansis Brammanis bfdca7fc85 Add fill patterns for landuse, natural areas
Not working in Firefox. To get it to work in Firefox,
styles need to be directly applied to the path, or
set in an embedded stylesheet (not sure whats going on there).
2013-03-08 00:16:07 -05: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
Ansis Brammanis 2af11c71db disable hideOnMouseover while dragging 2013-03-07 15:19:32 -05:00
Tom MacWright 9502f34e08 Merge pull request #918 from systemed/resample-oneway
Resample oneway paths to produce markers.
2013-03-07 11:37:26 -08:00
Tom MacWright ee04bf65f4 Fine tune marker spacing 2013-03-07 14:37:00 -05:00
Tom MacWright fefdecfa67 Corner-preserving resampling 2013-03-07 14:16:08 -05:00
John Firebaugh a6ce12efb6 Add shadow on area strokes (fixes #674) 2013-03-07 10:33:11 -08:00
John Firebaugh cb59453fcd Make vertex shadow slightly smaller
It's getting in the way too often.
2013-03-07 10:33:10 -08:00
Tom MacWright 27c0edb2c1 Resample oneway paths to produce markers.
This uses a technique created by @mbostock in http://bl.ocks.org/mbostock/4965670
Need to confirm that this is faster. It is definitely cleaner.
2013-03-06 21:08:50 -05:00
John Firebaugh bf90c1ae93 Render circular place=* as an unfilled area
Basically, give it area label placement, but line
behavior otherwise.

Test case: #id=w169604918&map=19.46/41.41402/-70.94773
2013-03-06 17:37:18 -08:00
Ansis Brammanis 928cade41b oneway markers on rivers and streams 2013-03-06 17:51:31 -05:00
John Firebaugh 98d1ee4f10 Fix rendering of multipolygons with the tags on the outer way
From the wiki:

> If you have one closed way making up the outer ring and it does not
> describe something in its own right, you may also put these tags on
> the outer ring and leave the relation untagged.

During line and area rendering, fix up such ways so that they are
rendered as if the tags were on the relation instead.

Fixes #613.
2013-03-06 13:22:43 -08:00
Ansis Brammanis 116e03c6d6 tweak point label halo 2013-03-06 14:22:52 -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
John Firebaugh 787e76dbd1 Fix snapping after moving (fixes #880) 2013-03-01 10:41:55 -08:00
Ansis Brammanis baa9dc6e5e Render unclosed areas correctly 2013-02-28 14:08:03 -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
Tom MacWright 5829438391 Enable advanced uglify compression, remove unused variables 2013-02-27 12:13:59 -05:00
John Firebaugh e154a94ef0 Draw only visible midpoints (#804) 2013-02-17 11:27:36 -08:00
Tom MacWright 61d7ec45b5 Banish function ( style 2013-02-12 16:35:47 -05:00
John Firebaugh cca9c30b32 Fix midpoint hover (fixes #728) 2013-02-12 10:51:19 -08:00
Ansis Brammanis 97ab739f1b Update bound data for all elements of points, vertices 2013-02-11 11:00:45 -05:00
Ansis Brammanis f4a6edb224 Localize labels 2013-02-08 18:25:39 -05:00
Tom MacWright 0b89df063f Optimize resetting opacity 2013-02-08 11:02:23 -05:00
Tom MacWright bd615fb19f Cache mousePosition 2013-02-08 10:48:00 -05:00