Export ol.geom.Geometry#intersectsCoordinate
This commit is contained in:
@@ -133,6 +133,7 @@ ol.geom.Geometry.prototype.getClosestPoint = function(point, opt_closestPoint) {
|
|||||||
* coordinate is on the boundary of the geometry, returns false.
|
* coordinate is on the boundary of the geometry, returns false.
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.Coordinate} coordinate Coordinate.
|
||||||
* @return {boolean} Contains coordinate.
|
* @return {boolean} Contains coordinate.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.geom.Geometry.prototype.intersectsCoordinate = function(coordinate) {
|
ol.geom.Geometry.prototype.intersectsCoordinate = function(coordinate) {
|
||||||
return this.containsXY(coordinate[0], coordinate[1]);
|
return this.containsXY(coordinate[0], coordinate[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user