Projet

Général

Profil

Révision f0cea9c4

Ajouté par Jocelyn Delande il y a plus de 9 ans

now displays the circles with the same color as on the pano (sortof...)

Voir les différences:

ajax/all_points.php
16 16
	return array("type" => "Feature",
17 17
	             "geometry" => array(
18 18
	                                 "type" => "Point",
19
	                                 "coordinates" => array($values[1],$values[0])
19
	                                 "coordinates" => [$values[1],$values[0]]
20 20
	                                 ),
21 21
	             "properties" => array("name" => $name, "type" => 'loc_point')
22 22
	             );
23 23
}
24 24

  
25

  
26 25
$json = array(
27 26
              "type" => "FeatureCollection",
28 27
              "features"=> array()
......
32 31
	$json['features'][] = ref_point_to_geoJSONFeature($name, $vals);
33 32
}
34 33

  
35

  
36 34
foreach(site_point::get_all(true) as $site_point) {
37
	$json['features'][] = $site_point->to_geoJSON();
35
       $json['features'][] = $site_point->to_geoJSON();
38 36
}
39 37

  
40 38
echo json_encode($json);

Formats disponibles : Unified diff