AYUDA MAPA DE GOOGLE

moyulloag

Bovino adolescente
#1
compañeros, vengo pidiendoles su ayuda, tengo el codigo del mapa de google y quiero pintar un marcador en una direccion, la idea es hacerlo desde una base de datos con php pero ahora lo tengo manualmente y me aparece el mapa pero no el marcador. AYUDENME A IDENTIFICAR EL PORQUE, porfavor

<script type="text/javascript">

function initialize() {
if (GBrowserIsCompatible()) {

var map = new GMap2(document.getElementById("map_canvas"));

var center = new GLatLng(18.889843, -99.140089);
map.setCenter(center, 10);
geocoder
// <?php do { ?>
var address='Esther Casariego,Rancho Nuevo,Yautepec,Morelos,Mexico';
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});

}

});
//<?php } while($row= mysql_fetch_array($sqlubicacion)); ?>

GEvent.addListener(marker, "dragstart", function() {
map.closeInfoWindow();
});

GEvent.addListener(marker, "dragend", function() {
marker.openInfoWindowHtml("Just bouncing along...");
});

map.addOverlay(marker);

}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
 
Arriba