added tests for osm/note

This commit is contained in:
Thomas Hervey
2018-07-21 21:44:07 -04:00
parent c3fe1fedd9
commit baad5f0cc5
3 changed files with 38 additions and 3 deletions
-1
View File
@@ -9,7 +9,6 @@ export function actionMoveNote(noteID, toLoc) {
var note = services.osm.getNote(noteID);
note.move(geoVecInterp(note.loc, toLoc, t));
// TODO: update
};
action.transitionable = true;
+1 -1
View File
@@ -329,7 +329,7 @@ function parseXML(xml, callback, options) {
// replace or remove note from rtree
function updateRtree(item, replace) { // update (or insert) in _noteCache.rtree
// TODO: other checks needed? (e.g., if cache.data.children.length decrements ...)
// NOTE: other checks needed? (e.g., if cache.data.children.length decrements ...)
// remove note
_noteCache.rtree.remove(item, function isEql(a, b) { return a.data.id === b.data.id; });