Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.34 KB

poly.md

File metadata and controls

41 lines (23 loc) · 1.34 KB

See html formatted version

poly namespace

google.maps.geometry.poly namespace

Utility functions for computations involving polygons and polylines.

Library

geometry

Static Methods

undefined

containsLocation(point, polygon)

Parameters: 

Return Value:  boolean

Computes whether the given point lies inside the specified polygon.

undefined

isLocationOnEdge(point, poly[, tolerance])

Parameters: 

Return Value:  boolean

Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance. Returns true when the difference between the latitude and longitude of the supplied point, and the closest point on the edge, is less than the tolerance. The tolerance defaults to 10-9 degrees.