Update Markers on Map from Searchresult using Leaflet, Search-Source and Meteor -
i want update markers on map. i'm using meteorhacks:search-source package searching. works.
at moment markers set observing collection like:
collection.find({}).observe({
now want 'observe' search result. can me?
you can use observe
of cursor
cursor = collection.find({}) cursor.observe(function() { ... })
or can put collection.find()
in template helper, meteor create observer watch changes of database , update related view template
Comments
Post a Comment