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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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