Commit Graph

173 Commits

Author SHA1 Message Date
John Firebaugh d247962324 Handle incomplete relations in simpleMultipolygonOuterMember 2013-05-01 10:28:40 -07:00
Ansis Brammanis 42721f6f44 don't remove oneways during partial redraws
fixes #1394
2013-04-29 10:54:04 -04: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
Ansis Brammanis 4eccd7015f corner destroying resampling for oneway markers 2013-04-25 18:41:49 -04:00
John Firebaugh 7d66e03c0b Redraw hovered vertices more efficiently (#1377) 2013-04-25 13:53:31 -07:00
John Firebaugh 275696caaa Fix icons for lines that use maki (fixes #1371)
Generate a single feature-icons.json and feature-icons.css.
In the JSON, features with a line icon are indicated by the
presence of a `line` property. PresetIcon looks for this to
determine whether or not to add the `preset-icon-line` class.
New line icons may be added by editing line-icons.json.
2013-04-24 12:32:36 -07:00
John Firebaugh c50c3121d8 Make Graph#entity strict
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
John Firebaugh 78aee5b6aa Fix tests 2013-04-23 20:09:36 -07:00
John Firebaugh 265c059407 Always display intersections 2013-04-23 17:31:32 -07:00
John Firebaugh d0e53a7070 Fix child calculation 2013-04-23 16:52:33 -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
John Firebaugh d8751fad8d Polish spriting code
* Smaller make-sprite.json.
* Convert operation sprite data to JSON, eliminating
  fragile stylesheet grepping.
2013-04-23 09:45:37 -07:00
Ansis Brammanis 6096f9b230 fix #1362 2013-04-22 13:17:06 -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
Ansis Brammanis d21d52d905 add maki as dependency, new sprite script
issue #1319
2013-04-19 14:51:48 -04:00
John Firebaugh 90383a4591 Look through all stylesheets for sprites
Needed for concantenated iD.css.
2013-04-16 17:57:58 -07:00
John Firebaugh 77ce20c8c1 Add configurable image path 2013-04-16 17:20:21 -07:00
Saman Bemel-Benrud 4158b1c48e use svg for radial menu. 2013-04-09 12:34:57 -04:00
Ian B c3c2cfd0a2 Add aeroway styles (#1102) 2013-03-30 13:28:14 +01:00
Ansis Brammanis df465f73f9 more careful about not drawing midpoints
in the case where all vertices were out of bounds it would
assume there were many hidden vertices
2013-03-28 19:01:51 -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 09642b1ea7 don't try to label if centroid is undefined
fixes #1180
2013-03-28 15:26:38 -04:00
Tom MacWright 591abfb52f Order points by y coordinate. Fixes #1145 2013-03-26 13:38:17 -04:00
Tom MacWright 93104c268f Fix jshint errors 2013-03-26 12:20:51 -04:00
John Firebaugh 1c3b817b89 Autosize both sprites (fixes #1116) 2013-03-22 16:22:32 -07:00
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