2009/8/3 Marnen Laibow-Koser <[email protected]>: > > Sijo Kg wrote: >> Hi >> >> Yes I want to draw maps, dealing with geocoded data, > > I've been using YM4R for that. I've only dealt with Google Maps, but I > understand that Mapstraction is very helpful if you're dealing with > multiple mapping services. >
I would vote for using Mapstraction as it isolates you from a particular map provider. I have a problem with YM4R however. The concept there is to construct the map object in the controller and then display it in the view. I suggest that the map is not an object to be set up in the controller but is a feature of the view. I setup the data to be viewed in the controller/model (@markers to hold the markers for example) and then construct the map in the view just using the mapstraction (or google) js API. I believe this fits the MVC architecture better. Colin >> As exacltly >> according to the latlong information have to draw routes on map etc > > I don't know if there's anything out there to help with drawing routes. > >> So >> could you please suggest a good gem and also the other helper urls if >> any > > Take a look at GeoRuby and Spatial Adapter as well. > > Also, on the database side, I recommnd using PostgreSQL with PostGIS. > >> >> Sijo > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > [email protected] > -- > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

