UNPKG

kea-geo

Version:

Collection of geo related utility

4 lines (3 loc) 138 B
module.exports = function (lng, lat, bounds) { return lng >= bounds[0] && lng <= bounds[2] && lat >= bounds[1] && lat <= bounds[3] }