add simak to git repo

This commit is contained in:
ryan
2025-10-10 09:25:05 +07:00
commit dc9b19e59f
2037 changed files with 443491 additions and 0 deletions

View File

@@ -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);
}
}
}
};