How could I replace the Latitude and Longitude in GLatLng() with a form control value?
Example:
$(document).ready(function(){
var map = new GMap2($("#map").get(0));
var burnsvilleMN = new GLatLng(18.502401,-68.391953);
map.setCenter(burnsvilleMN, 10);
Something like this but it’s not working:
$(document).ready(function(){
var map = new GMap2($("#map").get(0));
var burnsvilleMN = new GLatLng(DOCUMENT.FORM.CONTROL.VALUE);
map.setCenter(burnsvilleMN, 10);
borrowing from Blaze a little bit(I forgot that you would need to parse the string for your function GLatLng)