On Nov 10, 1:05 pm, Travis <[EMAIL PROTECTED]> wrote: > I have tried multiple commands. But is there somehing wrong with my > commands??
OK. I will copy the content from the page for you to read (does the code look anything like yours? Not the comment that says it _doesn't_ work): from: http://econym.org.uk/gmap/basic1.htm > Don't attempt to "unroll" the createMarker() function. This doesn't work. > var point = new GPoint(-79.90138, 43.65654); > GEvent.addListener(marker, "click", function() { > marker.openInfoWindowHtml("Some stuff"); > }); > map.addOverlay(marker); > > var point = new GPoint(-78.89231, 43.91892); > GEvent.addListener(marker, "click", function() { > marker.openInfoWindowHtml("Some other stuff"); > }); > map.addOverlay(marker); > > What goes wrong is that there's only one copy of the "marker" variable. When > the "click" event gets triggered at > a later time, it gets the value that's in the variable at the time of the > call, but you want the value at the time the > event handler was set up. > > On Nov 10, 2:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > On Nov 10, 12:11 pm, Travis <[EMAIL PROTECTED]> wrote: > > > > I posting two locations to my map but I only have one bubble > > > location. In the command I have it set up for two bubbles. I would > > > like the pointer to click on the location and the information > > > appears. Can anyone give commands that work. I have tried everything > > > and it does not work. > > > > here is an example: > > > > and nothing appears now. > > > >http://roehrsinc.com/mymap1.html > > > The code above is not the same as the link you provided. Why a second > > thread? How is this thread different from this > > one:http://groups.google.com/group/Google-Maps-API/browse_frm/thread/64e3... > > > -- Larry- 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 -~----------~----~----~----~------~----~------~--~---
