A link to your map would be almost brilliant as well, so we could
properly debug.

As it is, assuming you posted what your code actually looks like, your
parentheses are incorrect in the map.setCenter line.

On Jan 15, 8:54 am, "[email protected]"
<[email protected]> wrote:
> Hi Guys,
>
> Is there anyway to read in the coordinates for a place from a textbox
> or database in asp.net??
>
> I have this script which takes a value from a textbox but the map
> doesn't work?!
>
> var map = new GMap2(document.getElementById("map"));
> var Lat = (document.getElementById("latText").value);
>
> map.setCenter(new GLatLng(Lat), 7);
>
> But it doesn't like the 'Lat' being in where the coordinates should
> be. It is correctly reading the textbox as i have tested it. but not
> taking the value(coordinates) and using them.?!?!
>
> any help would be brilliant, thank you
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to