This commit is contained in:
Dwi Swandhana
2026-06-09 08:56:30 +07:00
parent fb6e11c0e6
commit b793755d95
1851 changed files with 344010 additions and 2 deletions

No files matched your search

@@ -0,0 +1,14 @@
GMaps.prototype.checkGeofence = function(lat, lng, fence) {
return fence.containsLatLng(new google.maps.LatLng(lat, lng));
};
GMaps.prototype.checkMarkerGeofence = function(marker, outside_callback) {
if (marker.fences) {
for (var i = 0, fence; fence = marker.fences[i]; i++) {
var pos = marker.getPosition();
if (!this.checkGeofence(pos.lat(), pos.lng(), fence)) {
outside_callback(marker, fence);
}
}
}
};