gpstest
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}
}
}
};
|
Revision |
Author |
Commited |
Message |
1
|
lingaraj
|
Sat 24 Nov, 2018 13:04:59 +0000 |
|