A bug as been opened some time before on adding a marker.setZIndex(..) or something similar. I am not sure if and when they are gonna handle it. but I think it is something many wish for.
On Feb 25, 9:40 am, Alan C <[email protected]> wrote: > In case anyone is looking for stacking with custom icons - I have > modified Mike Williams' example to use custom icons, it's here > > http://lakesuk.com/stack/index.htm > > Alan C > > On Feb 25, 1:24 am, Musella <[email protected]> wrote: > > > > > Ralph, > > You got it! Works perfectly. > > > If anyone wants to see it in action, look > > athttp://greyribboncrusade.org/members.cfm > > and notice the green marker in the chicago area.. before this change, > > it was invisible since there were red markers in front if it. > > > Thank you so much! > > Al > > > On Feb 24, 7:53 pm, Ralph Ames <[email protected]> wrote: > > > > Add this function at the top only once > > > > function importanceOrder (marker,b) { > > > return GOverlay.getZIndex(marker.getPoint().lat()) + > > > marker.importance*1000000; > > > > } > > > > Then the code for each marker > > > > var point182 = new GPoint(-87.894223, 42.031772); > > > ---------------------------------------------------------------------------- > > > ----------------------- > > > var marker182 = new > > > GMarker(point182,{icon:icongreen,zIndexProcess:importanceOrder}); > > > marker182.importance = 1; > > > ---------------------------------------------------------------------------- > > > ----------------------- > > > var myhtml182 = "LAAF - Lori Arquilla Andersen Foundation <br />Des > > > Plaines, > > > Il<br><br><img src='http://greyribboncrusade.org/logos/laafLogoHeader.gif' > > > width='249' height='95'><br><br><a href='http://www.laafinc.org' > > > target='_blank'>Click Me!</a>"; > > > map.addOverlay(marker182); > > > GEvent.addListener(marker182, 'click', function() { > > > marker182.openInfoWindowHtml(myhtml182); > > > > }); > > > > Should work. > > > Ralph - 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 -~----------~----~----~----~------~----~------~--~---
