Hi, that works well for rightclicks on a gpolygon or gpolyline, but I'm listening for right clicks on the editing vertices on the gpolygon and gpolyline. The way I found to do this is to test for the overlay.line property, its not documented, but at least its an exposed property. Problem is, I don't see any way to tell whether the editing vertex belongs to a polyline or polygon. Any ideas?
On Oct 22, 2:56 pm, Martin <[email protected]> wrote: > 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... > > 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.
