Okay! All I had to do was include the "document" code directly underneath 
the "varsouth" code, as you suggested. Now, the lats and longs appear on 
the webpage. Thanks so much!

I've been reviewing the site you provided, but I'm having trouble making 
the leap to my next phase: querying a MySQL database with these lats and 
longs to show points of interest in my map. 

I'm using Ruby on Rails, and I know that I can hard-code a latitude and 
longitude to find locations by doing this in my controller:

@nearbylocations = Masterlocation.find(:all, :conditions => ["latitude > 25 
AND latitude < 30"], :order => ['nickname asc'])

Can you provide a link to a tutorial or a suggestion of how I can get where 
I am now to actually including these POIs in the map? The "Using PHP/MySQL 
with Google Maps" is good, but it's difficult to make the leap from that 
code to doing it in Rails. 

I really appreciate the help, Barry!

- Kevin



On Tuesday, February 5, 2013 2:46:10 PM UTC-5, barryhunter wrote:
>
>
>
>
>  as part of my 
>>
>> function calcRoute() {
>>
>> I wanted to see if this was working. So, at the very end of my script, I 
>> added:
>>
>> document.getElementById("south").innerHTML = longsouth;
>> document.getElementById("west").innerHTML = latwest;
>>
>>
> Sounds like a scope issue. You trying to use the variables when they have 
> gone out of scope. Can only 'use' them inside the loop. 
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to