var map; var image; var shadow; function initialize_map(){ var myLatlng = new google.maps.LatLng(30.263812101454512, -88.87390124218746); var myOptions = { zoom: 9, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); image = new google.maps.MarkerImage('http://maps.google.com/mapfiles/ms/micons/fishing.png', new google.maps.Size(32, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); shadow = new google.maps.MarkerImage('http://maps.google.com/mapfiles/ms/micons/fishing.shadow.png', // The shadow image is larger in the horizontal dimension // while the position and offset are the same as for the main image. new google.maps.Size(59, 32), new google.maps.Point(0,0), new google.maps.Point(0, 32)); //Getting pointer in map getMapPointer(); } function placeMarker(data){ var myLatLng = new google.maps.LatLng(data.LatLng.Lat, data.LatLng.Lng); map.setCenter(myLatLng); var marker = new google.maps.Marker({ position: myLatLng, icon: image, shadow: shadow, title: data.title, map: map }); google.maps.event.addListener(marker, 'click', function(){ showajax("ajax.process.php?action=show_map_content&cid="+data.content_id); //init_rte("map_content"); }); } $("document").ready(function(){ if($("#map_canvas").length>0){ } $('#slide_show').cycle({ fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc... }); });