On Nov 19, 1:43 pm, Oraxia <[email protected]> wrote:
> Hey all,
>
> Is there a way to find out the type (ie GPolygon, GPolyline, GLatLng,
> etc.) from a layer?

The results of this search might be useful:
http://www.google.com/search?sourceid=gmail&rls=gm&q=javascript%20object%20instanceof%20GMarker

try "myMarker instanceof GMarker" to determine whether the object
myMarker is a GMarker or not

(I haven't used it extensively)

  -- Larry

> I grab layers from a list, but I need to process
> them differently based on their type. I have seen something similar in
> GoogleEarth's KML (getType) and I was hoping there was an equivalent
> over on this side, or some other simple way to do this. Any help would
> be greatly appreciated :)
>
> I couldn't find anything in the API that looked like it did this (and
> I didn't see any topics that looked like they fit the question, but my
> Google Fu is notoriously weak), but I wanted to ask in case I was
> completely missing something. Sorry if I'm being a pest!
>
> Thanks!

--

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=.


Reply via email to