Forum: Ruby on Rails Geocoding recipe: locations not showing on Google Maps

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vahagn H. (Guest)
on 2009-01-22 14:41
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+...

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&amp;v=2&amp;k...
GeoKit::Geocoders::google %>"></script>

<% if @gyms -%>
  <script type="text/javascript">
    var gyms = <%= @gyms.to_json %>;
  </script>
<% end -%>

Thanks!

Cheers,
Vahagn
This topic is locked and can not be replied to.