Pls igore the earlier post, here is the full code.
 
functionsetMarkers(map, appointments, jobHasAppointment) {varjobAppointments = 
appointments.split('|');varj = 1;varpushPinURL = 
$get('<%=hdnPushPinURL.ClientID%>').value;for(vari = 0; i < 
jobAppointments.length; i++) {varriskAddress = 
jobAppointments[i].split('^')[0];varcomments = 
(jobAppointments[i].split('$')[1].indexOf('`')) ? 
jobAppointments[i].split('$')[1].split('`')[0] : '';varappointmentDetails = 
jobAppointments[i].split('~');varjobID = (appointmentDetails.length > 0 && 
appointmentDetails[1] != null) ? appointmentDetails[1].split('$')[0] : 
'';varappointmentContactAndTime = jobAppointments[i].split('`')[1];'address': 
riskAddress }, function(results, status) {if(status == 
google.maps.GeocoderStatus.OK) {if(jobHasAppointment == jobHasAppointments.Yes) 
{varappointmentMarkerImage = newgoogle.maps.MarkerImage(pushPinURL + j++ + 
".png")varmarker = newgoogle.maps.Marker({'job#: '+ jobID,else{varmarker = 
newgoogle.maps.Marker({'job#: '+ jobID,function(jobID, comments, marker) 
{'click', function() {varinfowindow = newgoogle.maps.InfoWindow;varcontent = 
'<div class="infowindow">+ comments + '</div>';this);else{"Geocode was not 
successful for the following reason: "+ status);
geocoder.geocode({ 
map.setCenter(results[0].geometry.location);
icon: appointmentMarkerImage,
map: map,
title: 
position: results[0].geometry.location
});
points.push(results[0].geometry.location);
}
map: map,
title: 
position: results[0].geometry.location
});
}
(
google.maps.event.addListener(marker, 
infowindow.setContent(content);
infowindow.open(map, 
});
})(jobID, comments, marker);
} 
alert(
}
});
}
} 


      

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to