styles->add($config->urls->templates.'css/leaflet.css');
$config->scripts->add($config->urls->templates.'js/leaflet-src.js');
$latitude = str_replace(',','.',$page->latitude);
$longitude = str_replace(',','.',$page->longitude);
/**
* Nodes aus der nähe anzeigen
*/
$nearnodes = umkreissuche("node", $page->latitude, $page->longitude, 5);
$marker = '';
foreach($nearnodes as $node){
$marker .= "L.circle([".str_replace(',','.',$node->latitude).",".str_replace(',','.',$node->longitude)."], 10,{
color:'blue',
fillColor:".($page->online == 1 ? "'green'" : "'red'"). "
}).addTo(map)
.bindPopup('httpUrl."\">{$node->subtitle}
".getDistance($node->dist)." entfernt');";
}
$script = "";
$page->losttime = time_elapsed_string($page->getUnformatted('lastseen'));
$content = renderPage();
if($input->post->delete && !$input->post->cancle){
deleteNode($node);
$content = "Der Node wurde erfolgreich gelöscht. httpUrl}'>Zurück";
}