editable = false; $this->ajax = $force_ajax; $this->set_mode($mode); if (isset($data_loc['location']) && count($data_loc['location'])) { $this->objects[] = array( 'layer' => "location", 'ids' => $data_loc['location'] ); } if (isset($data_loc['sur_location']) && count($data_loc['sur_location'])) { $this->objects[] = array( 'layer' => "sur_location", 'ids' => $data_loc['sur_location'] ); } if(count($this->objects)){ $this->model = new map_model($map_hold, $this->objects,$max_hold,$cluster); $this->model->set_mode("search_location"); }else{ //la recherche n'est pas encore enregistré... $this->ajax = true; } } }