javascript - Meteor Exception in template helper -
i have problem in application, error on line
<pre><code>type: 'point'</code></pre> error:
exception in template helperthe structure in locs geojson structure.
this code on client side:
nextlocation: function(){       var geodata = geolocation.latlng();       var nextloc = locs.find({         location: {           $near: {             $geometry: {                 type: 'point',                 coordinates: [geodata.lng,geodata.lat]             },             $maxdistance: 100000           }         }       });       console.log(nextloc);       return nextloc;     }the code in template:
{{nextlocation._id}}i have no idea why there error.
 
 
  
Comments
Post a Comment