Fire page now shows also false positives
This commit is contained in:
parent
c962d12374
commit
f0bf995584
8 changed files with 77 additions and 49 deletions
|
|
@ -34,4 +34,15 @@ FalsePositives.schema = new SimpleSchema({
|
|||
|
||||
FalsePositives.attachSchema(FalsePositives.schema);
|
||||
|
||||
export const falsePositivesRemap = (odoc) => {
|
||||
const doc = odoc;
|
||||
const geo = doc.geo;
|
||||
doc.lat = geo.coordinates[1];
|
||||
doc.lon = geo.coordinates[0];
|
||||
doc._id = doc.fireId;
|
||||
doc.id = doc.fireId;
|
||||
delete doc.geo;
|
||||
return doc;
|
||||
};
|
||||
|
||||
export default FalsePositives;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue