Shape Information Application

Details

This sample application shows how to retrieve important information like area, length, centroid, perimeter and extent from map shapes.  To see this example in action select a shape from the shapes drop down box and watch the information be updated automatically.  This sample also shows the different choices offered for measurement.  To view the map shapes in a different unit of measurement, modify the length or area measurement types.

Shape Information
Show Length In:

Show Area In:

Shapes

Area: 4029296.12
Perimeter: 720534.15
Length:
Centroid: 89º 13' 53''W 39º 25' 00''N

Extent:
  Min X: -90º 23' 28''
Min Y: 38º 15' 25''
Max X: -88º 04' 18''
Max Y: 40º 34' 35''

Map
Zooming
Panning