Hello,

I have a database application with lat/long and associated attributes in MySQL. MySQL extensions, are far as I know can't be used to compute a centroid.

Is there a way in OpenLayers to compute the centroid for a given vector layer that's obtained via a KML file? I see that there is a function that acts on geometry collections. Can that be used? If so I assume I have to iterate over the data obtained via the KML file to create this collection...

The whole purpose is to set the map's center and initial bounds.

Bill

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to