//'; }else { picture = ''; } var infoTabs = [ new GInfoWindowTab("Name", "
" + YAHOO.gmaps.markerContent[YAHOO.gmaps.currentMarker].name + picture + "
"), new GInfoWindowTab("Description", YAHOO.gmaps.markerContent[YAHOO.gmaps.currentMarker].description) ]; YAHOO.gmaps.markers[YAHOO.gmaps.currentMarker].openInfoWindowTabsHtml(infoTabs, {maxWidth:200}); }, editMarker: function (id) { map.closeInfoWindow(); $('currentMarkerId').value = id; $('iframeUpload').src = "upload.php?id=" + id; $('currentMarkerName').value = YAHOO.gmaps.markerContent[id].name; $('currentMarkerDescription').value = YAHOO.gmaps.markerContent[id].description; $('markerPosLat').value = YAHOO.gmaps.markerContent[id].posLat; $('markerPosLng').value = YAHOO.gmaps.markerContent[id].posLng; YAHOO.gmaps.newMarkerDialog.show(); }, deleteMarker: function (id) { var request = YAHOO.util.Connect.asyncRequest('POST', "index.php", YAHOO.gmaps.addMarkerCallback, "command[RemoveMarker]="+id); map.removeOverlay(YAHOO.gmaps.markers[id]); YAHOO.gmaps.markers.splice(id, 1); YAHOO.gmaps.markerContent.splice(id, 1); for(i=0;i<12;i++) { if(iGive your marker a NAME! or Delete"; }else { $('marker' + id).innerHTML = "
  • " + (id + 1) + ": Edit: " + YAHOO.gmaps.markerContent[id].name + " or Delete
  • "; } }, setNewMarker: function (point) { YAHOO.gmaps.currentMarker = YAHOO.gmaps.markers.length; if(YAHOO.gmaps.currentMarker >= 12) { alert("You cannot add any more markers!

    To add another marker, please delete an old one first."); return; } YAHOO.gmaps.markers[YAHOO.gmaps.currentMarker] = new GMarker(point, {draggable: true}); GEvent.addListener(YAHOO.gmaps.markers[YAHOO.gmaps.currentMarker], "dragstart", function() { map.closeInfoWindow(); }); GEvent.addListener(YAHOO.gmaps.markers[YAHOO.gmaps.currentMarker], "dragend", function() { for(i=0;i After you have added the markers you wanted, and given them names,
    you can click finish to save your map: Finish"; } YAHOO.gmaps.editMarker(YAHOO.gmaps.currentMarker); }, updateMarkerContent: function(id, name, description, picture, width, height) { YAHOO.gmaps.markerContent[id].name = name; YAHOO.gmaps.markerContent[id].description = description; YAHOO.gmaps.markerContent[id].picture = picture; YAHOO.gmaps.markerContent[id].width = width; YAHOO.gmaps.markerContent[id].height = height; YAHOO.gmaps.refreshMarkerContent(id); }, submitMarker: function (id) { postData = "command[AddMarker]="+id+"&"; postData += "markerName="+YAHOO.gmaps.markerContent[id].name+"&"; postData += "markerDescription="+YAHOO.gmaps.markerContent[id].description+"&"; postData += "markerPosLat="+YAHOO.gmaps.markerContent[id].posLat+"&"; postData += "markerPosLng="+YAHOO.gmaps.markerContent[id].posLng+"&"; var request = YAHOO.util.Connect.asyncRequest('POST', "index.php", YAHOO.gmaps.addMarkerCallback, postData); }, setCurrentMarker: function (marker) { for(i=0;iYour Map!'; window.location = url + "&showUrl=true"; }, autoEnablePictureInMarkerDialog: function () { for(i=0;i Add up to 12 markers to the map. Do this by clicking the location where you want your marker.
    If the marker is not in the right place you can drag it to a new position.
    "; }else { $('markerInfo').innerHTML = "
    Markers:"; $('markers').style.border = '1px solid black'; } }, addMarkerCallback: { success: submitCallback, failure: submitFailure } } function submitCallback(obj) { var response = obj.responseText; response = response.split("