Thanks for the advice on the XML parsing, but I don't believe that can
be related to the problem. The markers do show on the map when using
IE6, so as far as getting the lat/long and placing them on the map,
all is OK. It's just that the title and info window do not appear. In
IE7 and FF they work perfectly.
In IE6, the markers appear, but do not seem to recognize the mouse
position. When the user clicks or mouses over a marker in IE6, the map
gets the event, not the marker.
On Aug 27, 8:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Aug 27, 7:43 am, SDNHM_John <[EMAIL PROTECTED]> wrote:
>
>
>
> > I create markers using this function:
>
> > function makeMarker(point, message, titleNum) {
> > var myIcon = new GIcon();
> > myIcon.image = iconFile;
> > myIcon.printImage = iconFile;
> > myIcon.mozPrintImage = iconFile;
> > myIcon.transparent = "/Images/star2_trans.png";
> > myIcon.iconSize = new GSize(20,19);
> > myIcon.iconAnchor = new GPoint(10,10);
> > myIcon.infoWindowAnchor = new GPoint(14,6);
> > markerOptions = { icon:myIcon, title:titleNum };
> > infoOptions = {maxWidth:240};
> > var marker = new GMarker(point, markerOptions);
> > GEvent.addListener(marker, "click", function()
> > {marker.openInfoWindowHtml(message, infoOptions);})
> > return marker;
>
> > }
>
> > The markers show the title on mouseover and the window on mouse click
> > in both IE7 and FF. But they do not show up in IE6. In IE6 it appears
> > that the markers are not even there although they display on the
> > screen. Clicking on a marker in IE6 has the same effect as clicking on
> > the map.
>
> > web page: BajaFlora.org/GMap/bajaPlaceNames.htm
>
> Don't know if this is your problem or not, but you may want to use
> Google's GXml.value to parse out the element values:
> latitude = xmlPin[i].getElementsByTagName("Lat")
> [0].childNodes[0].nodeValue
> latitude = GXml.value(xmlPin[i].getElementsByTagName("Lat")
> [0].childNodes[0]);
>
> You also may want to convert the strings to numbers (parseFloat).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---