Commit Graph

24 Commits

Author SHA1 Message Date
Bryan Housel
cb0e8ab66c Initial support for Multi Fetch GET
It will also be much faster to fetch the remote entities in batches
rather than one at a time through LoadEntity.

One bonus/hazard with Multi Fetch GET is that it will get deleted entities
with `visible=false`, rather than returning a HTTP Status Code 410 (Gone).

This will be the only way that we can really do proper undeletion
(Incrementing the current version by 1 is not guaranteed to work.  And
if a way is moved, fetching way/full will tell us whether the childnodes
are part of the way, but not necessarily whether they exist or not.)

We must be careful never to merge deleted entities into the real graph.
e.g, a deleted node will not have a 'loc' attribute, so code that assumes
every node must have a `loc` will be broken.

So because deleted entities are very special, the output from `loadMultiple`
should only be used for conflict resolution for now.
2015-03-03 20:54:09 -05:00
Bryan Housel
f6d144c151 Improvements, and simplify code
* don't worry about deep copying, because immutability
* don't need `attrs` parameter which is usually empty
* don't worry about resetting `v` entity version
2015-01-01 22:49:44 -05:00
Bryan Housel
dae0d2d55e Add entity copy methods 2014-12-28 22:00:55 -05:00
John Firebaugh
c0db8b8e67 jshint 2014-05-27 14:42:15 -07:00
John Firebaugh
0c09871c4a Don’t show turn restriction editor for non-highways (fixes #2240) 2014-05-27 14:35:57 -07:00
John Firebaugh
b383bfec1f Fix unclosed area rendering (fixes #1958) 2013-11-13 17:41:57 -08:00
John Firebaugh
1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh
539a8520b4 Use d3.geo.area 2013-08-26 14:38:09 -07:00
John Firebaugh
1386f4beb7 Fix tests 2013-08-14 16:55:54 -07:00
John Firebaugh
2efafa087b Deduplicate entities in serialized history
Fixes #1403
2013-08-14 16:49:53 -07:00
John Firebaugh
d63f9c8381 Set precision to 0.
Mitigates a performance regression with D3 3.2.
2013-06-20 13:58:28 -07:00
John Firebaugh
16e5f5e2ce Extract Entity#isUsed 2013-05-24 15:46:05 -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
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
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
c8dcba31ad Auto-zoom to entity specified by id param 2013-04-18 14:24:10 -07:00
John Firebaugh
7100054707 Use preset names in commit dialog 2013-04-01 08:33:07 -07:00
John Firebaugh
66e1bdb47d Show tag editor for untagged entities that aren't new
Fixes #991.
2013-03-14 15:59:56 -07:00
John Firebaugh
4720a84d38 No-op a null tag merge
Reduces unnecessary node churn in Connect action.
2013-03-12 16:26:40 -07:00
John Firebaugh
fa01cfbbf0 Smarter tag conflict merging (fixes #943) 2013-03-08 11:00:14 -08:00
Tom MacWright
5838f05116 Merge tags without a space, fixes #941 2013-03-08 10:51:44 -05:00
John Firebaugh
843baa11c0 graph -> core
This matches how it's described in ARCHITECTURE.md.
2013-02-09 15:18:54 -08:00