Thanks Larry. Nailed it. Funny the icons would show but I guess that was a hint of backwards compatibility taking me for a loop.
-jon On Apr 22, 3:13 pm, "[email protected]" <[email protected]> wrote: > On Apr 22, 2:59 pm, jonharrell <[email protected]> wrote: > > > > > Ok, I read several of the other posts but for some reason > > adding .transparent and .imageMap has not fixed the issue. I can click > > using the same Function if I change back to the default markers. But > > clicking and displaying the infowindow is disabled with the custom > > marker. > > > the website address is: > > >http://www.dlc4me.com/dlcmap.php?xmlselect=sww&lotnum=66013&test=1 > > > I can pragmatically display the infowindow - but the clicks are > > getting ignored. > > > Thank you in advance for any help in finding the culprit. > > > -jon > > ----------------------------------- > > > var hicon = new GIcon(); > > hicon.image = > > "http://www.dlc4me.com/images/gmap/House_rose.png"; > > hicon.shadow = > > "http://www.dlc4me.com/images/gmap/shadow- > > House_rose.png"; > > hicon.iconSize = new GSize(30,28); > > hicon.shadowSize = new GSize(45,28); > > hicon.iconAnchor = new GPoint(15,14); > > hicon.infoWindowAnchor = new GPoint(15,15); > > hicon.imageMap = [14,0,0,14,0,28,28,28,28,14]; > > hicon.transparent = > > "http://www.dlc4me.com/images/gmap/ > > House_rose_trn.png"; > > > function createMarkerHtml(point, title, html) { > > > var marker = new GMarker(point,hicon,{title:title,clickable:true}); > > GEvent.addListener(marker, "click", function() > > { marker.openInfoWindowHtml(html); }); > > return marker; > > This syntax is depreciated: > var marker = new GMarker(point,hicon,{title:title,clickable:true}); > In that syntax the 3rd argument is a boolean "unclickable" if I recall > correctly. > > Use the documented syntax: > var marker = new GMarker(point, > {icon:hicon,title:title,clickable:true}); > > -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
