When i set up my Gmarker objects i obtained various attributes related
to this marker that were held in a MySQL database using a PHP script,
as follows:
var request = GXmlHttp.create();
var pts = [];
request.open("GET", "http://www.globexposure.net/includes/
read.php", true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = GXml.parse(request.responseText);
// obtain the array of markers and loop through it
var markers =
xmlDoc.documentElement.getElementsByTagName("poi_markers");
for (var i = 0; i < markers.length; i++) {
// obtain the attribues of each marker
var lat = parseFloat(markers[i].getAttribute("lat"));
var reg_id = markers[i].getAttribute("reg_id");
etc etc
var reg_id was one of those attributes.
I would like to set the id of the regional_marker to be equal to the
reg_id attribute that is held against the Gmarker object whose
infowindow is being closed.
Does that make more sense?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---