Commit 941b6a75 authored by Loïc DAYOT's avatar Loïc DAYOT Committed by Ploc
Browse files

feature(): allow display local groups in map

Allow display local groups sort by region in map. To show them, enable each in layer switcher.

bug fix #50
parent b58dc558
......@@ -54,6 +54,19 @@ $jcode = "
var newl = new OpenLayers.Layer.GeoRSS('AdL', '" . calendar_absolute_url("rss.php?region=all&map=1&daylimit=0") . "');
map.addLayer(newl);
";
$oRegion = new region($db);
foreach ($oRegion->getList() as $aRegion)
{
$jcode .= " var newl = new OpenLayers.Layer.Text(\"{$adl_localgroups_acronym}-".
$aRegion['name']. "\", {location: '" .
calendar_absolute_url("localgrouptextlist.php?region={$aRegion['id']}") . "', visibility: false});\n".
" map.addLayer(newl);\n";
}
$jcode .= "
}
</script>\n";
......
Supports Markdown
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