Hi all,
I am using this script to display google maps on my wordpress site:
<head>
<script>
function initialize()
{
var mapProp = {
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:5,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap")
,mapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
I have set up two custom fields “fl_long” , “fl_lat” for the longitude and latitude.
How do I modify the code above so that the values are taken from the custom fields instead of being hardcoded numbers?