//Utility functions for map info window function mapit(latlontitle) { lat = parseFloat(latlontitle.split(',')[0]); lon = parseFloat(latlontitle.split(',')[1]); //title= latlontitle.split(',')[2]; elid= latlontitle.split(',')[2]; centerCoord = new google.maps.LatLng(lat, lon); var mapitinit; if (mapitinit == true) { mapPanTo(); } else { mapInit(); } function mapInit() { var mapOptions = { zoom: 8, center: centerCoord, disableDefaultUI: true, navigationControl: true, mapTypeId: google.maps.MapTypeId.TERRAIN, navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL} }; map = new google.maps.Map(document.getElementById("mw-"+elid), mapOptions); var marker = new google.maps.Marker({ position: centerCoord, map: map //title: title }); mapitinit = true; } function mapPanTo(){ var marker = new google.maps.Marker({ position: centerCoord, map: map //title: title }); map.panTo(centerCoord); } } //########## utility functions to create/remove map container ############ function create_map(obj) { //find id of this image caption: imgid = obj.title.split(',')[2]; //create container divs $('