Skip to content

Instantly share code, notes, and snippets.

View surferxo3's full-sized avatar

Mohammad Sharaf Ali surferxo3

View GitHub Profile
@surferxo3
surferxo3 / map_search.js
Last active July 26, 2020 13:13
Perform search on highlighted area by drawing Polygon on Google Maps. Supports actions such as Undo, Redo, and Clear and with Ray Castle Algorithm implementation.
/* global declerations */
var poly, map, path, path_backup, markersArray = [];
/* undo all point(s) */
function undo_point() {
//enable search button if 3 points on the map
if(path.length < 4) {
$("#ss").css('visibility', 'hidden');
}