Vahagn Hayrapetyan
2009-Jan-22 12:41 UTC
Geocoding recipe: locations not showing on Google Maps
Hi, can someone helpe me out with a Google Maps issue: I''ve incorporated one of the recipes in Advanced Rails Recipes book (the GeoCoding one). Although everything is done exactly as in the recipe, the locations do not show up on Google Maps. (The geocoding part of the recipe works - the Geokit has been tested on command-line and live). For instance, here''s a search using the string "San Diego" and within 1 mile: http://functionalgyms.com/gyms/locate?address=San+Diego&within[miles]=1 Exactly one gym is present in the resulting dataset, which is as it should be - but it doesn''t show on the map. This is probably some JavaScript quirk that just keeps avoiding me (a relative newbie). Here''s the part of the page that loads the map: <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=<%GeoKit::Geocoders::google %>"></script> <% if @gyms -%> <script type="text/javascript"> var gyms = <%= @gyms.to_json %>; </script> <% end -%> Thanks! Cheers, Vahagn -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---