Révision f0cea9c4
Ajouté par Jocelyn Delande il y a presque 10 ans
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 |
|
Formats disponibles : Unified diff
now displays the circles with the same color as on the pano (sortof...)