1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
<?php
namespace SIW\Elements;
class Interactive_Map_ESC extends Interactive_Map {
protected $id = 'esc';
protected $file = 'europe';
protected $data = [
'mapwidth' => 600,
'mapheight' => 600,
];
protected $options = [
'search' => true,
];
protected function get_categories() {
return [];
}
protected function get_locations() {
$countries = siw_get_countries( 'esc_projects' );
$locations = [];
foreach ( $countries as $country ) {
$europe_map_data = $country->get_europe_map_data();
$locations[] = [
'id' => $europe_map_data->code,
'title' => $country->get_name(),
'x' => $europe_map_data->x,
'y' => $europe_map_data->y,
'category' => 'bestemmingen'
];
}
return $locations;
}
protected function get_mobile_content() {
return null;
}
}