Forum: Ruby on Rails Can Anybody Tell How to do Google Map Mashup???

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.
4c9dbbcecdb826fb1443f222850644a0?d=identicon&s=25 Vrishali.... (Guest)
on 2009-02-16 15:22
(Received via mailing list)
Hi!!!!!!!!!!!!

I am using rails 2.2.2 , n want to mashup google map with mysql 5.0
database,
can anybody please tell me this step by step???


Thanks!!!!!
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-02-16 16:43
(Received via mailing list)
Check out Andre Lewis' blog for information about his Geokit plugin for
Rails - http://earthcode.com/ .

As for step by step instructions, it depends on the data set you're
mashing.
4c9dbbcecdb826fb1443f222850644a0?d=identicon&s=25 Vrishali.... (Guest)
on 2009-02-17 15:00
(Received via mailing list)
Hello !!!

Thanks for your help..but I was reffering that code only... but was
geeting errrors as follows:

1.uninitialized constant : XMLRPC error

2. You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each

Extracted source (around line #27):

24:             map.addControl(new GSmallMapControl());
25:             map.centerAndZoom(new GPoint(-122.443882, 37.769079),
5);
26:
27:             <%@places.each do |place|%>
28:             var point = new GPoint(<%=place[:longitude]%>,<%=place
[:latitude]%>);
29:             var marker = createMarker(point,'<div><%=h place
[:description]%></div>')
30:             map.addOverlay(marker);



so will you please tell me how to solve them???
834a5b9ae16a115b7ba667472650ab13?d=identicon&s=25 Marko Anastasov (markoa)
on 2009-02-17 15:49
(Received via mailing list)
Besides geokit, you could also investigate ym4r [*].
I personally started with it but dropped it and wrote all the
javascript manually.

  Marko

[*] http://ym4r.rubyforge.org/
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-02-18 11:40
(Received via mailing list)
I'm not exactly sure what might be causing the first error you mention
here,
but the second one seems to be the result of the @places array not being
initialized by the controller.
51655eeeedad656fad30717c46852437?d=identicon&s=25 Chris Kottom (Guest)
on 2009-02-18 11:50
(Received via mailing list)
I'm not exactly sure what might be causing the first error you mention
here,
but the second one seems to be the result of the @places array not being
initialized by the controller.
This topic is locked and can not be replied to.