On Apr 22, 8:57 am, "[email protected]" <[email protected]>
wrote:
> I would have thought you would write a createpolygon function that
> created apolygonand saved the name to an attribute of it for later
> retrieval.
That's the part where I think I've ran into my knowledge limits
In egoxml.js, this code is present:
EGeoXml.prototype.createPolygon = function
(points,color,width,opacity,fillcolor,fillopacity,pbounds, name, desc)
{
var thismap = this.map;
var iwoptions = this.opts.iwoptions || {};
var polygonoptions = this.opts.polygonoptions || {};
var p = new GPolygon
(points,color,width,opacity,fillcolor,fillopacity,polygonoptions)
this.map.addOverlay(p);
this.gpolygons.push(p);
....
It appears that I need to add code before this.gpolygons.push(p); that
adds the name to it. Either that or define an entirely new variable
(gpolygonsnamedesc) and then do a this.gpolygonsnamedesc.push. It
also appears I could create a createPolygon function myself but then I
lose all of his existing code.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---