On Mar 31, 1:59 pm, mcmryan <[email protected]> wrote: > Hi, > > I'm a newbie to Google API's so forgive me if my problem is simple. > > I can get my own icon to be displayed > inhttp://www.lovelurgan.com/maps/map1b.html > but I don't know how to add more markers. Each time I try to put some > code in, the marker disappears. > > Ideally I would like something likehttp://www.lovelurgan.com/maps/map3.html > but with my own logo instead of the default one. > > Can anyone help me?
Copy the icon definition from: http://www.lovelurgan.com/maps/map1b.html (this code, just make sure it is in the global scope - outside of the initialize function) var myIcon = new GIcon(G_DEFAULT_ICON); myIcon.image = "my_custom_icon.png"; myIcon.iconSize = new GSize(57, 64); myIcon.shadow = "my_custom_icon_shadow.png"; myIcon.shadowSize = new GSize(100, 64); myIcon.iconAnchor = new GPoint(28, 63); myIcon.infoWindowAnchor = new GPoint(27, 19); myIcon.printImage = "my_custom_icon_print.gif"; myIcon.mozPrintImage = "my_custom_icon_mozPrint.gif"; myIcon.printShadow = "my_custom_icon_printShadow.gif"; myIcon.transparent = "my_custom_icon_transparent.png"; myIcon.imageMap = [ 28,63, 23,41, 13,33, 1,35, 1,32, 11,29, 12,16, 3,8, 6,6, 15,13, 24,8, 33,8, 38,0, 42,0, 36,10, 41,16, 44,22, 56,22, 56,26, 44,27, 43,31, 37,38, 31,41, 29,63 ]; var markerOptions = { icon:myIcon }; into http://www.lovelurgan.com/maps/map3.html and change the createMarker function to use it... function createMarker(point,name,html) { var marker = new GMarker(point, markerOptions); -- 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 -~----------~----~----~----~------~----~------~--~---
