On Aug 28, 9:25 am, SDNHM_John <[EMAIL PROTECTED]> wrote: > Thanks for looking that deep into the issue. I feel like an idiot. I > dropped that .png file into the wrong folder. Anyway, that was the > answer. That transparant .png is critical for IE6, but not required > for IE7 or FF or Safari.
As is described in the documentation: http://code.google.com/apis/maps/documentation/reference.html#GIcon.Properties transparent String The URL of a virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. This image should be a 24-bit PNG version of the main icon image with 1% opacity, but the same shape and size as the main icon. (of course most people, including me, only find that out when it effects them..) > > On Aug 27, 8:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > On Aug 27, 8:07 pm, SDNHM_John <[EMAIL PROTECTED]> wrote: > > > > 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. > > > Sounds like a problem with your custom icon definition then... > > > Perhaps if this image existed, it might work > > better:http://www.BajaFlora.org/Images/star2_trans.png > > > -- Larry > > > > 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).- Hide > > > > quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
