I am not including a link because my question is not directly related
to code that needs debugging. Instead, I am looking for advice on
approaches for the following situation.

My application has 132 distinct polygons with ~70,000 distinct points.
Right now, I am loading the points from a database, using new GLatLng
to create the points in an array, and finally creating polygons with
GPolygon. Unfortunately, the load time for this process is
substantial.

I created an XML with the same data points and the load time is
significantly faster. Unfortunately, I need to be able to edit the
Polygon's color and border (maybe a few other features as well)
dynamically depending upon values selected on a form on the same page.
The XML file does not offer me the option of editing the Polygon with
Javascript because I don't have a reference to it. Other links have
proposed that adding a listener to the addOverlay event would solve
this problem. However, the reference is not sufficient as it only
provides some kind of high level overlay information (such as the
label) and not the actual color or even the polygon ID.

Yes, I have seen and used geoXML, but it doesn't quite have the
functionality that I need (or I'm not understanding how to use it). I
think that more study and manipulation on my part could get this code
(geoXML) to a state where it does what I want, but I wanted to get
opinions and alternatives before I invest the time.

I believe my two best options are going to be to either a) find a way
to get references to the XML polygons after they have been loaded or
b) I've been brainstorming that a TRUE GLOBAL on my Ubuntu/Apache/PHP
setup might allow me to loop through the points and create the
polygons (GLatLng and GPolygon) ONCE, save the values to the GLOBAL/
Variable, and then load these objects back to JavaScript which would
leave only the rendering with AddOverlay.

Please feel free to ask questions if my ramblings aren't clear.

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

Reply via email to