Walter McGinnis wrote: > On Tue, Sep 21, 2010 at 9:22 AM, Walter McGinnis > <walter.mcgin...@gmail.com> wrote: >> >> One difference that my code has (in the controller where @map object >> is initialized) is that it uses this: >> >> @map.center_zoom_on_points_init(*...@coordinates_for_results) >> > > This indeed is the source of your problem I think. You code centers on > one specific point with a zoom level of 4. If your markers don't fall > within the map's area as centered around this point at this zoom > level, they appear to not exist. However, they are simply not > visible. > > To test my theory, simply try zooming out and see if the other markers > appear. > > With multiple markers you almost certainly want to use the > center_zoom_on_points_init method to get a map that will show all > points. There is a decent walk through of the process here: > > http://www.codequest.eu/articles/google-maps-rails-and-solr-spatial-search > > Cheers, > Walter
Hi Walter! Thanks for your reply. I tried with zoom level 0 and only display the last result of the recordset :-S I will read this article and try again. Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.