v2.85: Wondering how looong your polylines are or how BIG your polygons are? We have the answers!

Monday, July 23, 2007 at 2:41:00 PM

In the latest version of the API, we're introducing utility functions to give you more information about your lines and shapes: GPolyline.getLength, GPolyline.getBounds, GPolygon.getArea, and GPolygon.getBounds. Below, I've modified the code from the E-Z Digitizer tutorial to show you the length or area of the drawn poly, and let you zoom to the bounds of the drawn poly.

Check out the documentation for more information, and post in the forum if you have any questions.