On Apr 22, 7:57 am, "[email protected]" <[email protected]> wrote: > On Apr 22, 7:34 am, MagiCat <[email protected]> wrote: > > > Saw that in the documation but I had interepreted it as letting me > > creating a single polygon in addition to whatever was in the KML > > file. Would you know of an example of someone doing something > > similar? > > No. But that doesn't mean there isn't one. > > > Is it just a matter of throwing a simple line of code into > > the constructor? > > I would have thought you would write a createpolygon function that > created a polygon and saved the name to an attribute of it for later > retrieval.
Like this: http://www.geocodezip.com/collection-map2e.html > > > > > As of now it's able to do: > > > exml.gpolygons.length > > exml.gpolygons[i].Contains(point) > > > As well as hiding and reshowing the appropriate polygon (if I add the > > appropriate code) > > > Is there a page of documentation I'm missing for createpolygon or > > something? > > Not that I know of. > > -- Larry > > > > > > > On Apr 22, 12:51 am, "[email protected]" <[email protected]> > > wrote: > > > > Looking at the code, it looks like it doesn't store those anywhere. > > > But from the documentation: > > > {createpolygon: ... } A reference to your own createPolygon() > > > function. > > > Use this if you want to handle your ownpolygoncreation. > > > The function will be called with the parameters: points, colour, > > > width, opacity, fillcolour, fillopacity, bounds, name, description. > > > > It looks like you could define your own createpolygon function which > > > added a Name (or whatever you wanted to call it) property to thepolygon, > > > then you could get it like your first example above > > > > marker.openInfoWindowHtml(exml.gpolygons[i].Name); > > > > (not tested...) > > > > -- Larry > > > > > The page I'm working on is at: > > > > >http://www.alliedwasteidaho.com/trash-and-recycling/collection-map2.p...quoted > > > > text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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=en -~----------~----~----~----~------~----~------~--~---
