Ah, I'm quite the neophyte, so I'm afraid my terminology is an issue. I probably meant GMarker, and I probably mean overlays (I just happen to picture them as layers plastered onto the map). I was hoping there would be a general "getClassName" kind of thing that I could call on various objects so I could identify them if I'm not sure what it is I have :(
The list contains GPolygons, GPolylines, and I think possibly also GMarkers (I don't think there's such a thing as a GPoint?)--I'm trying to augment some existing code. On Nov 19, 3:24 pm, Rossko <[email protected]> wrote: > > Is there a way to find out the type (ie GPolygon, GPolyline, GLatLng, > > etc.) from a layer? > > I'm not entirely sure what you mean. GPolygon, GPolyline, GMarker are > all kinds of GOverlays that can be placed on a map. GLatLng is a > description of a location, e.g. you would place a GMarker at a given > GLatLng. None of these are 'layers' so far as the maps API > terminology is usuall used, where a layer might be a tileset or a > layer where all the GMarkers are placed. > > What is this 'list of layers' you're trying to process? -- 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=.
