Add basic title + description UI

This commit is contained in:
SilentSpike
2019-01-20 13:21:26 +00:00
parent 4d89810721
commit 4f2646d567
10 changed files with 382 additions and 18 deletions
+22
View File
@@ -218,5 +218,27 @@ export default {
return _erCache.rtree.search(bbox).map(function(d) {
return d.data;
});
},
// get a single error from the cache
getError: function(id) {
return _erCache.data[id];
},
// replace a single error in the cache
replaceError: function(error) {
if (!(error instanceof impOsmError) || !error.id) return;
_erCache.data[error.id] = error;
updateRtree(encodeErrorRtree(error), true); // true = replace
return error;
},
// remove a single error from the cache
removeError: function(error) {
if (!(error instanceof impOsmError) || !error.id) return;
delete _erCache.data[error.id];
updateRtree(encodeErrorRtree(error), false); // false = remove
}
};