Beispiel #1
0
 /**
  * @AjaxCallable=TRUE
  * @AjaxMethod=POST
  * @AjaxAsync=TRUE
  */
 function load_pois()
 {
     $this->load->library('geo/Bounds');
     $this->load->library('geo/LatLng');
     $this->load->library('geo/Polygon');
     $this->load->library('geo/Point');
     $this->load->model('POIModel');
     $sBounds = filter_input(INPUT_POST, 'bounds', FILTER_VALIDATE_FLOAT, FILTER_REQUIRE_ARRAY);
     $bounds = Bounds::deserialize($sBounds);
     return POIModel::load_by_bounds($bounds);
 }