Def scan for neighbors alerts
This commit is contained in:
parent
a8dc8a6b58
commit
1ad6bf17cb
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ Meteor.publish('falsePositivesTotal', function total() {
|
||||||
export const whichAreFalsePositives = (fires) => {
|
export const whichAreFalsePositives = (fires) => {
|
||||||
const group = new L.FeatureGroup();
|
const group = new L.FeatureGroup();
|
||||||
const remap = fires.fetch().map(function remap(doc) {
|
const remap = fires.fetch().map(function remap(doc) {
|
||||||
return { location: { lat: doc.lat, lon: doc.lon }, distance: doc.scan };
|
// default scan: 1 for neightbor alerts
|
||||||
|
return { location: { lat: doc.lat, lon: doc.lon }, distance: doc.scan || 1 };
|
||||||
});
|
});
|
||||||
const result = calcUnion(remap, group, sub => sub);
|
const result = calcUnion(remap, group, sub => sub);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue