Project

General

Profile

« Previous | Next » 

Revision f0cea9c4

IDf0cea9c4745542689b531df9b5b5fd8d0e9e5ed8
Parent f7cc6422
Child 329a7a3b

Added by Jocelyn Delande about 8 years ago

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

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);
js/utils_osm.js
344 344
	
345 345
	map.addControl(selectControl);
346 346
	selectControl.activate();
347

  
347 348
}
348 349

  
349 350