Function add_marker(location_served) { var location = $(location_served).val(); var geocoder; geocoder = new google.maps.Geocoder(); geocoder. Geocode( { 'address': location }, function(results, status) { if (status == google.maps.GeocoderStatus. OK) { Gmaps4Rails.
Replace_markers({ "longitude": results0.geometry.location.lng(), "latitude": results0.geometry.location.lat() }); //brute way to do Gmaps4Rails. Clear_circles(); Gmaps4Rails. Circles = {"latitude": , "longitude": , "radius":}; Gmaps4Rails.
Create_circles(); //soft way (if you only want to update radius) Gmaps4Rails. Circles0. Google_object.
SetRadius(number_here); //beware in the latest version of the gem I replaced google_object with serviceObject } else { alert("The location you've entered is invalid"); } }); }.
Thanks for your answer. I add 'Gmaps4Rails. Circles = {"latitude": -122.214897 , "longitude": -122.214897, "radius": 10000}; Gmaps4Rails.
Create_circles();' but there are no circle,FYI, I use version 0. 7.6. Thank for your next answer – fatimah Jul 4 at 4:38 Weird it already existed see github. Com/apneadiving/Google-Maps-for-Rails/blob/v0.7.6/public/… Well what's the error?
– apneadiving Jul 4 at 23:11 Hmm, there are no error message. But the circle didn't appear. – fatimah Jul 5 at 12:29.
The reason the circles aren't showing in the answer below is the tags for lat/lng: //brute way to do ... Gmaps4Rails. Circles = {"latitude": , "longitude": , "radius":}; ... Should be Gmaps4Rails. Circles = {"lat": , "lng": , "radius":}; According to gmaps4rails.base.
Js line 165.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.