Added cron tweets for active fires in 'es' and 'pt'
This commit is contained in:
parent
c99559d442
commit
0c56bcf7e0
9 changed files with 252 additions and 3 deletions
|
|
@ -18,7 +18,8 @@ Meteor.publish('falsePositivesTotal', function total() {
|
|||
|
||||
export const firesUnion = (fires) => {
|
||||
const group = new L.FeatureGroup();
|
||||
const remap = fires.fetch().map(function remap(doc) {
|
||||
const firesArray = Array.isArray(fires) ? fires : fires.fetch(); // if not is a cursor
|
||||
const remap = firesArray.map(function remap(doc) {
|
||||
// default scan: 1 for neightbor alerts
|
||||
return { location: { lat: doc.lat, lon: doc.lon }, distance: doc.scan || 1 };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue