Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tparkin/Google-Maps-Point-in-Polygon
Adds a containsLatLng() method to Polygon class for Google Maps API v3
https://github.com/tparkin/Google-Maps-Point-in-Polygon
Last synced: about 2 months ago
JSON representation
Adds a containsLatLng() method to Polygon class for Google Maps API v3
- Host: GitHub
- URL: https://github.com/tparkin/Google-Maps-Point-in-Polygon
- Owner: tparkin
- Fork: true (mattwilliamson/Google-Maps-Point-in-Polygon)
- Created: 2010-07-27T01:06:20.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T22:17:27.000Z (about 10 years ago)
- Last Synced: 2024-07-10T01:38:23.677Z (3 months ago)
- Language: JavaScript
- Homepage: http://www.timparkin.com
- Size: 197 KB
- Stars: 255
- Watchers: 24
- Forks: 81
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
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);