You should be able to do that with the javascript 'instanceof' statement: http://www.google.co.uk/search?x=0&y=0&q=javascript+instanceof&ie=UTF-8&oe=UTF-8
Test if the clicked on GOverlay is an instance of a GMarker or a GPolyline. Martin. On 22 Oct, 11:34, Raji <[email protected]> wrote: > Hi, > > I have GMarker and GPolyline added in the Map. > > On Map "singlerightclick" event Map returning overlay(GOverlay) > object. > > when singlerightclick event happens ,I want to know whether the > returned overlay(GOverlay) object is GMarker or GPolyline. > > Is there anyway to identify? > > Regards, > Raji MS -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
