tparkin / Google-Maps-Point-in-Polygon forked from mattwilliamson/Google-Maps-Point-in-Polygon
- Source
- Commits
- Network (2)
- Downloads (0)
- Graphs
-
Branch:
master
name | age | message | |
---|---|---|---|
![]() |
README | Mon Jul 26 18:34:23 -0700 2010 | |
![]() |
maps.google.polygon.containsLatLng.js | Mon Jul 26 18:34:23 -0700 2010 |
README
This is a Javascript Google Maps v3 extension for the Polygon class to detect whether or not a point resides within it. Simplest Usage: var coordinate = new google.maps.LatLng(40, -90); var polygon = new google.maps.Polygon([], "#000000", 1, 1, "#336699", 0.3); var isWithinPolygon = polygon.containsLatLng(coordinate);