1. If you are using Openlayers see [here][1]. 2. If you are using leaflet see [here][2]. 3. For pure javascript see [here][3] or for NPM resources [here][4] or [here][5] There are other solutions beyond these but this should be enough to be getting on with. [1]: https://gis.stackexchange.com/questions/131280/ol3-check-if-point-is-inside-a-polygon [2]: https://stackoverflow.com/questions/16890294/leaflet-how-to-check-point-lies-inside-outside-of-polygon-or-rectangle [3]: https://stackoverflow.com/questions/22521982/js-check-if-point-inside-a-polygon [4]: https://www.npmjs.com/package/point-in-polygon [5]: https://www.npmjs.com/package/robust-point-in-polygon