The documentation http://code.google.com/intl/en/apis/maps/documentation/javascript/events.html for V3 says that only a single argument is sent to your event handler (the only one I've actually researched is the click event, which as the documentation says passes a mouseEvent, with a latLng property, and nothing else).
If you want to handle click events on overlays separately (the first argument in V2 is a GOverlay object, which you appear to refer to as "section"), you can just attach a event handler directly to each overlay. - Jeff On Jul 29, 7:43 am, mariovi <[email protected]> wrote: > Hi, I have the following code in v2: > > mylistener = GEvent.addListener(map2,'click',mapClick); > ...... > ...... > > function mapClick(section, clickedPoint){ > .... > if (section == null)) > .... > > } > > As you can see, I use the argument section in my application, > In v3, I have: > > google.maps.event.addListener(map2, 'click', mapClick); > > function mapClick(??? > I tried as in v2, but it doesnt work > thanks a lot > mariovi -- 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.
