File indexing completed on 2026-04-09 07:58:27
0001 GMaps.prototype.checkGeofence = function(lat, lng, fence) {
0002 return fence.containsLatLng(new google.maps.LatLng(lat, lng));
0003 };
0004
0005 GMaps.prototype.checkMarkerGeofence = function(marker, outside_callback) {
0006 if (marker.fences) {
0007 for (var i = 0, fence; fence = marker.fences[i]; i++) {
0008 var pos = marker.getPosition();
0009 if (!this.checkGeofence(pos.lat(), pos.lng(), fence)) {
0010 outside_callback(marker, fence);
0011 }
0012 }
0013 }
0014 };