Hi,

Sometimes I change the code for the site is under construction. The
problem with the question still remains. I want to activate Marker
Title Tooltip function by title data from xml file.

I revision the code similar. It's code is works but this time don't
opened infoWindow.

downloadUrl("vakalar.xml", function(data) {
var xmlDoc = xmlParse(data);
var records = xmlDoc.getElementsByTagName("marker");
for (var i = 0; i < records.length; i++) {
var rec = records[i];

var title = rec.getAttribute("title"); <!-- read title data from xml --
>
var vaka = rec.getAttribute("vaka");
var lat = parseFloat(rec.getAttribute("lat"));
var lng = parseFloat(rec.getAttribute("lon"));

var myLatLng = new google.maps.LatLng(lat,lng);

var marker = new google.maps.Marker({
        position: myLatLng,
        map: map,
        title: title,
        });

var html_text = vaka;
createMarker(marker,title,html_text,map);
}

Thank you all...

-- 
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