Oh YEESSSSS. Thomas, you're my man. I owe you beer (lots), anytime, anywhere we meet. <br><br>The moment I read your answer was when I finally learned to use FireBug properly and could see that something very strange was happening in the <br>
<br>var latlng = new GLatLng(gyms[i].lat,gyms[i].lng)<br><br>line. The array contained the right amount of items, but the function just couldn't extract the values from it.<br><br>It was like telepathy! BANG!<br><br>The correct form is:<br>
<br><b>var latlng = new GLatLng(gyms[i]['gym'].lat,gyms[i]['gym'].lng)</b><br><br>@Chris: thanks, will check it out when I've done sorting this one out! Nice to have an alternative implementation.<br><br>
@sole: Well guess what ISN'T working now - it's the markers! The guy who made this recipe is a former Accenture consultant and now a GeoCoding guru, SIGH. I mean, to have 2 not-working things in a short snippet of code... damn. Will have a look at it using your marker code - thanks!<br>
<br>@Dan & Matthew - thanks for the comments!<br><br>I guess I owe all you guys a beer now - what a delightful thought.<br><br>Now if you'll excuse me, I'll have a Friday night and have one for the soul of ex-consultants now turned Rails gurus.<br>
<br>All the best,<br>Vahagn<br><br><br><div class="gmail_quote">On Fri, Jan 23, 2009 at 4:47 PM, Thomas R. Koll <span dir="ltr"><<a href="mailto:tomk32@gmx.de">tomk32@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Sugar! Too bad I'm not in London anymore. But please ask Murray or ChrisO to be so kind to<br>
take good care of the beer.<br>
<br>
"gyms[i]".should ==("gyms[i]['gym']")<br>
<br>
ciao, tom<br>
<br>
PS: Yes, it hurts sometimes.<br>
<br>
Am 23.01.2009 um 16:18 schrieb Vahagn Hayrapetyan:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I've just released a brand new webapp that allows for searching for the world's functional gyms. One thing I'm not an expert at is JavaScript and the Google APIs. Too bad for me - the only part of the app that does not work is where te search results are shown on Google Maps. Here's an example:<br>

<br>
<a href="http://functionalgyms.com/gyms/locate?address=San" target="_blank">http://functionalgyms.com/gyms/locate?address=San</a>+Diego&within[miles]=1<br>
<br>
(A search for a gym in San Diego within the radius of 1 mile).<br>
<br>
I've asked on the Google Maps API forum. I've debugged. I've asked the author of the recipe, Andre Lewis, directly (Advanced Rails Recipes, PragProg, 2008, the recipe is called "Mark locations on a Google Map"). He's not sure what the problem is. I'm not sure either (it's not my code). I've asked at the <a href="http://ruby-forum.com" target="_blank">ruby-forum.com</a>. So far, to no avail.<br>

</blockquote>
<br></div>
--<br>
Thomas R. "TomK32" Koll || <a href="http://tomk32.de" target="_blank">http://tomk32.de</a> || <a href="http://ananasblau.com" target="_blank">http://ananasblau.com</a><br>
just a geek trying to change the world<br>
Skype: TomK32 || Mail: <a href="mailto:tomk32@gmx.de" target="_blank">tomk32@gmx.de</a><br>
<a href="http://flickr.com/people/tomk32" target="_blank">http://flickr.com/people/tomk32</a><br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br>