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
John Firebaugh
63321b7bec
Clean up and simplify iD.svg.Areas
2013-05-13 09:37:00 -07:00
John Firebaugh
1823f2619f
Clean up and simplify iD.svg.Lines
2013-05-13 09:37:00 -07:00
John Firebaugh
a53d5cbb44
Optimize label hover
...
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 11:47:48 -07:00
John Firebaugh
578224bd63
Optimize hover behavior
...
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 09:40:34 -07:00
John Firebaugh
2c631c6a0f
Remove unused
2013-05-12 09:40:34 -07:00
John Firebaugh
c829cbb463
Cleanup
2013-05-11 13:13:06 -07:00
John Firebaugh
1641f38632
Use context.mouse()
2013-05-09 21:55:05 -07:00
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