Added geolocation. Improved map subs. FireMap page
This commit is contained in:
parent
0b4f895506
commit
fe7a314d92
13 changed files with 179 additions and 59 deletions
|
|
@ -2,8 +2,10 @@ import { Meteor } from 'meteor/meteor';
|
|||
import { check, Match } from 'meteor/check';
|
||||
import ActiveFires from '../ActiveFires';
|
||||
|
||||
Meteor.publish('activefires', function activefires() {
|
||||
return ActiveFires.find();
|
||||
var counter = new Counter('countActiveFires', ActiveFires.find({}));
|
||||
|
||||
Meteor.publish('activefirestotal', function() {
|
||||
return counter;
|
||||
});
|
||||
|
||||
const validZoom = Match.Where((zoom) => {
|
||||
|
|
@ -30,7 +32,6 @@ var NullOr = function (type) {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
const zoomMetersPerPixel = [156412, 78206, 39103, 19551, 9776, 4888, 2444, 1222, 610.984, 305.492, 152.746, 76.373, 38.187, 19.093, 9.547, 4.773, 2.387, 1.193, 0.596, 0.298];
|
||||
|
||||
var activefires = function(zoom, lat, lng) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue