Commit Graph

230 Commits

Author SHA1 Message Date
John Firebaugh 573237e94e Render U-turns 2014-05-18 16:02:48 -07:00
John Firebaugh d4d80b2d6e Use turn restriction icons 2014-05-18 16:02:48 -07:00
John Firebaugh 3d210ac3c1 Implement basic restriction toggling 2014-05-18 16:02:47 -07:00
John Firebaugh 26422d9c9a Show ways in restriction editor as if they were split 2014-05-18 16:02:47 -07:00
John Firebaugh f39ae89177 Render turns of selected way 2014-05-18 16:02:47 -07:00
John Firebaugh be0126aba6 Extract iD.svg.Defs from Surface
Need to have a single defs for the entire document but
multiple Surfaces.
2014-05-18 16:02:46 -07:00
Bryan Housel 21882299c7 Move building tag class before everything
(so railway=station tagged building looks like a building)
2014-05-01 10:38:52 -04:00
Bryan Housel f3ee2664a1 Render embarkment/cutting with dashed casing 2014-04-30 14:01:46 -04:00
Bryan Housel c289f33e86 Order building before other tag classes, so buildings always show as red 2014-04-30 00:01:56 -04:00
John Firebaugh 27a948084e Get military fill to show up in Firefox 2014-04-15 10:47:31 -07:00
John Firebaugh ab8a4ffd7b Update GitHub links 2014-01-08 16:14:28 -08:00
John Firebaugh 3f67b1e513 Adjust fix for #2040 2013-12-10 10:17:25 -05:00
John Firebaugh 40519b98dd Prioritize boundary tag to minimize area fills (fixes #1920) 2013-10-25 15:37:53 -07:00
John Firebaugh 1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh 8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
John Firebaugh f1deed2712 Fix area sorting corner case (fixes #1903) 2013-10-18 10:28:01 -04:00
John Firebaugh 9557d8f130 Cache path 2013-10-17 10:19:56 -04:00
John Firebaugh 98b10a4f6b Exonerate Firefox 2013-10-15 15:42:15 -04:00
John Firebaugh 411db160fe Prefer to render highway=* styles over railway=*
Fixes #1880
2013-10-09 14:02:55 -07:00
tyr e8d637f2bb Add iD.geo.sphericalDistance
iD.geo.euclideanDistance should only be used for calculations of 
projected coordinates or display (pixel) coordinates.

iD.geo.sphericalDistance calculates approximate geographical 
distances, accounting for distortions at higher latitudes. This 
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
Tom MacWright 7ff9bf4a8f Cleanup style and null check 2013-09-17 10:46:49 -04:00
hhclaw.eb@gmail.com ab6c6411bd Unicode fix for label 2013-09-06 20:15:01 +08:00
hhclaw.eb@gmail.com 2c163ae2c2 Amend width calculation for wide characters 2013-09-06 20:00:08 +08:00
John Firebaugh 405a49506b Building logic for turn restrictions 2013-08-30 14:23:05 -07:00
John Firebaugh 20cf935c46 Optimize iD.svg.Labels 2013-08-26 16:33:03 -07:00
John Firebaugh f3c6f3eca4 Optimize use of iD.svg.Points.points 2013-08-26 15:54:58 -07:00
John Firebaugh 30f68c4ef9 Insert areas in sorted order
Fixes #1693
2013-08-26 15:27:57 -07:00
Vladimir Agafonkin 454eecae8f replace RTree with RBush 2013-07-21 17:20:14 +03:00
John Firebaugh 0689ab7f71 Restore differenced point rendering (#569, #1604) 2013-06-18 16:23:02 -07:00
John Firebaugh 6befa984db Fall back to ref tag for displayed feature name 2013-06-03 18:32:27 -07:00
John Firebaugh a853de7b87 Fix vertex showing on hover 2013-06-03 16:43:41 -07:00
John Firebaugh a84a3364cc selection -> selectedIDs
Overloading "selection" is a bad idea.
2013-06-03 15:48:03 -07:00
John Firebaugh c14e2e600e Fix strokes sometimes being clipped as polygons
Fixes #1527.
2013-05-28 20:30:41 -07:00
John Firebaugh 0d7f38f6c1 Extract iD.util.localeName 2013-05-22 11:30:28 -07:00
John Firebaugh bd2c7ba756 Render bridge casing for bridge=viaduct, etc.
Fixes #1500.
2013-05-20 16:49:55 -07:00
John Firebaugh 67d95595ba Points always need full re-render (#569) 2013-05-20 12:05:31 -07:00
John Firebaugh 6c849baad6 Revert "Cache centroid"
Causes misplaced labels, suspect due to rounding artifacts.

This reverts commit 5344bdea26.
2013-05-18 09:20:58 -07:00
John Firebaugh 5344bdea26 Cache centroid 2013-05-17 15:31:27 -07:00
John Firebaugh 1cfeba3da4 Don't draw offscreen vertices (fixes #1494) 2013-05-16 15:28:50 -07:00
John Firebaugh fdc5824c5a Simplify 2013-05-16 15:28:50 -07:00
John Firebaugh 6431fca8a3 Fix area caching (fixes #1485) 2013-05-14 16:52:02 -07:00
John Firebaugh 51cb9af907 Cache area 2013-05-13 22:46:29 -07:00
John Firebaugh 544c493eba Cache isIntersection 2013-05-13 22:40:43 -07:00
John Firebaugh afc8f109e8 Render areas in one pass 2013-05-13 22:28:24 -07:00
John Firebaugh 29f4006526 Set pattern only on enter 2013-05-13 21:50:32 -07:00
John Firebaugh 878a4c0074 Don't need member tags for area strokes
Member tags are for multipolygon members, and multipolygon
member strokes are rendered by iD.svg.Lines.
2013-05-13 21:45:26 -07:00
John Firebaugh 9495f8f1c0 Optimize area rendering
Use iD.svg.Path for caching, and teach iD.svg.Path to
round coordinates.
2013-05-13 17:48:18 -07:00
John Firebaugh fd1573fa08 Abandon iD.svg.MemberClasses
Substantial performance hit for something that's barely used.
2013-05-13 12:46:01 -07:00
John Firebaugh 70e5411114 Optimize vertex rendering
* Cache icon
* Append rather than insert
* Do fewer things on update
* Don't create a fill unless needed
* Don't apply tag and member classes (never used)
* Drop down to raw setAttribute (d3 is slow :trollface:)
2013-05-13 09:37:48 -07:00
John Firebaugh 6060e886cb Reduce calls to iD.svg.TagClasses
For fills and shadows, style changes can happen only when
a new version of the feature is produced. If we include a
version number in the key, we need only call TagClasses on
the enter selection.

We cannot apply the same optimization for strokes, since
stroke style can depend on the tags of parent relations
as well.
2013-05-13 09:37:48 -07:00