javascript - Meteor Exception in template helper -


i have problem in application, error on line

<pre><code>type: 'point'</code></pre> 

error:

exception in template helper

the 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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -