Hi Mike, it works fine, thanks for help
On Apr 18, 8:03 pm, Mike Williams <[email protected]> wrote: > It's a Function Closure problem. > > Your createMarker() function obtains Function Closure on the s variable, > which contains the HTML text, but your meinMarker variable is global. > > Try deleting > var meinMarker; > > and changing > meinMarker = new GMarker(point); > to > var meinMarker = new GMarker(point); > > Hint: it's also a good idea to check that the click isn't on an overlay: > > GEvent.addListener(map,"click",function(e,t) { > if (t) { > map.addOverlay(createMarker(t)); > } > }); > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
