MapBlips abridged
var Blips = new Meteor.Collection("blips");
if (Meteor.is_client) {
var handle = Meteor.subscribe('blips', function () {});
var handleClient = Meteor.subscribe('blips_' + clientID, function () {});
Meteor.call('mapBlips', box, clientID, function (error, result){
BlipsClient = new Meteor.Collection('blips_' + clientID);
blips_client = BlipsClient.find({});
}
if (Meteor.is_server) {
function mapBlips(box, clientID) {
Meteor.publish('blips_' + clientID, function (box) {
return Blips.find({"loc" : {"$within" : {"$box" : box}}});
});
}
}