> From: [EMAIL PROTECTED]
>
> $("#lat").val() and $("#lng").val() are strings. GLatLng
> takes 2 numbers.
>
> var point = new GLatLng(parseFloat($("#lat").val()),
> parseFloat($("#lng").val()));
>
> -- Larry
You hit the nail on the head.
Here's another tip that I like to use for simpler code. You can use + to
convert a string to a number to instead of parseFloat():
var point = new GLatLng( +$('#lat').val(), +$('#lng').val() );
-Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---