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

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -