On Jul 22, 3:05 pm, Scott Coffey <[email protected]> wrote:
> Thanks for the response!
>
> It's probably not the best practice, but the page is a child page of a
> Masterpage, so I am initializing in a second 'body' tag.
>
> I changed the code to handle the float:
>
>             var latitude = 
> parseFloat(document.getElementById('ctl00_ContentPlaceHolder1_lblLatitude') 
> .value);
>             var longitude = 
> parseFloat(document.getElementById('ctl00_ContentPlaceHolder1_lblLongitude' 
> ).value);
>             var latlng = new google.maps.LatLng(latitude, longitude);
>
> Doesn't seem to work, coordinates are still correct underneath the google 
> map.http://www.huarencommunity.com/chinacity/city2.aspx?cityid=6

but map.getCenter() returns (NaN, NaN) so they aren't being used.

  -- Larry
>
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to