Verified Commit dd5250dc authored by noplanman's avatar noplanman

Remove stray marker in the Gulf of Guinea.

parent ba6693f3
......@@ -34,7 +34,10 @@ if (!$result) {
}
$numrows = pg_num_rows($result);
while ($row = pg_fetch_array($result)) {
unset($feat);
// If this isn't the first entry, put a comma to seperate the entries.
$feat !== null && print ',';
$feat = '';
if ($row["service_facebook"] === "t") {$feat .= "<div class='smlogo smlogo-facebook'></div>";}
if ($row["service_twitter"] === "t") {$feat .= "<div class='smlogo smlogo-twitter'></div>";}
if ($row["service_tumblr"] === "t") {$feat .= "<div class='smlogo smlogo-tumblr'></div>";}
......@@ -45,11 +48,10 @@ while ($row = pg_fetch_array($result)) {
if ($row["secure"] == "true") {$ur="https";} else {$ur="http";}
echo <<<EOF
{ "type": "Feature", "id":"1", "properties":
{ "html":"{$pod_name}<br><a href=\'{$ur}://{$row["domain"]}\'>Visit</a><br> Open Signup: {$signup}<br> Users: {$row["active_users_halfyear"]}<br> Uptime: {$row["uptimelast7"]}%<br> Services:{$feat}" }, "geometry": { "type": "Point", "coordinates": [{$row["long"]},{$row["lat"]} ] } },
{ "html":"{$pod_name}<br><a href=\'{$ur}://{$row["domain"]}\'>Visit</a><br> Open Signup: {$signup}<br> Users: {$row["active_users_halfyear"]}<br> Uptime: {$row["uptimelast7"]}%<br> Services:{$feat}" }, "geometry": { "type": "Point", "coordinates": [{$row["long"]},{$row["lat"]} ] } }
EOF;
}
?>
{ "type": "Feature", "id":"1", "properties": { "html":"" }, "geometry": { "type": "Point", "coordinates": [0,0 ] } }
]
};
var tiles = L.tileLayer('https://{s}.tiles.mapbox.com/v4/diasporg.l615e519/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoiZGlhc3BvcmciLCJhIjoibTVBaldtayJ9.HdGPBIFeZyNKKQqCmU11nA', {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment