On Mar 1, 6:32 pm, Pau <[email protected]> wrote: > Here you have some code snippets, if you want the whole code just ask.
No, thanks! Please read and follow the group's posting guidelines: http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e# http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical -- Marcelo - http://maps.forum.nu -- > > Code to create the image: > image = document.createElement('img'); > image.src = 'caminante.png'; > image.style.cssText = 'margin: 10px;'; > image.id = 'caminante_menu'; > //here I tried many ways to add the listener... > google.maps.event.addDomListener(image, 'click', > function () { > image.src = 'caminante_selected.png'; > } > ); > > Code from the OverlayView constructor: > function MyOverlayView(opt_options){ > ... > div1.appendChild(image); > ... > > > > }; -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
