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

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

Primary LanguageJavaScriptMIT LicenseMIT

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.