Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 762 Bytes

File metadata and controls

12 lines (7 loc) · 762 Bytes

google-maps-us-states-minimum-bounding-rectangle

An example of applying minimum bounding boxes around US states on a Google map.

Screen Shot

Each state is a polygon drawn by connecting a series of latitude / longitude coordinates. These polygons are invisible and are used for attaching mouse events so that when your mouse cursor is within a polygon, a specific event can triggered.

In this case, that is drawing a polygon representing the minimum bounding rectangle for a US state.

Read more about minimum bounding recangle at Wikipedia.