Вход Регистрация
Файл: module-assets/admin/gmaps/lib/gmaps.geofences.js
Строк: 26
<?php
GMaps
.prototype.checkGeofence = function(latlngfence) {
  return 
fence.containsLatLng(new google.maps.LatLng(latlng));
};

GMaps.prototype.checkMarkerGeofence = function(markeroutside_callback) {
  if (
marker.fences) {
    for (var 
0fencefence marker.fences[i]; i++) {
      var 
pos marker.getPosition();
      if (!
this.checkGeofence(pos.lat(), pos.lng(), fence)) {
        
outside_callback(markerfence);
      }
    }
  }
};
?>
Онлайн: 0
Реклама