Awesome, Barry. Thanks for cleaning it up. I've included the below code
just under the // Perform search over this bounds, 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;
and I added to the body of my page:
<div id="south"></div><br>
<div id="west"></div>
However, after I create a route, no information is written to these divs. I
just want to make sure that I'm getting the lat and long from Routeboxer
before proceeding with the next step. Am I doing something wrong?
Again, thanks for all your help!
- Kevin
On Tuesday, February 5, 2013 1:56:21 PM UTC-5, barryhunter wrote:
>
> That should work, but it would be more robust to do - you avoid a
> messy conversion to string.
>
> var northeast = bounds.getNorthEast();
> var southwest = bounds.getSouthWest();
> var lateast = northeast.lat();
> var longnorth = northeast.lng();
> var latwest = southwest.lat();
> var longsouth = southwest.lng();
>
--
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 [email protected].
To post to this group, send email to [email protected].
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.