On Apr 21, 10:25 pm, MagiCat <[email protected]> wrote:
> I'm THIS close I think!!! I'm using EGeoXML to do things right now.
> As of right now, I've got marker.openInfoWindowHtml(point+" "+i);
> which shows the point and the number of the polygon. I probably just
> need some simple code that will get me the Name of the polygon. I've
> tried all sorts of logican things like:
>
> marker.openInfoWindowHtml(exml.gpolygons[i].name);
> marker.openInfoWindowHtml(exml.gpolygons[i].name());
>
> All of the posts that I've seen show me how to find the appropriate
> polygon, just not how to actually get the name and place it into the
> bubble.
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 own polygon creation.
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 the
polygon, 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...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---