Showing with 141 additions and 86 deletions.
  1. +0 −1 ToDo
  2. +136 −80 images/icon.svg
  3. +1 −4 varie.php
  4. +4 −1 visualizza-regione.php
1 change: 0 additions & 1 deletion ToDo
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ ToDo
- colore sfondo / righe
- aggiungere nel widget l'opzione "tutti i lug" (che produrra' un elemento immenso, ma magari utile per qualcuno)

- aggiustare riferimento a italia.lugmap.it, che pare non fungere
- aggiustare opml-to-sql
216 changes: 136 additions & 80 deletions images/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions varie.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,12 @@ function init () {
{ type: 'png', getURL: osm_getTileURL, displayOutsideMaxExtent: true, attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap - slippy map</a>',
isBaseLayer: true, visibility: true, numZoomLevels:20 } );

var gmap = new OpenLayers.Layer.Google("Google Streets", {numZoomLevels: 20} );

map.addLayers([mapnik, gmap]);
map.addLayers([mapnik]);

map.addControl(new OpenLayers.Control.Navigation());
map.addControl(new OpenLayers.Control.PanZoomBar() );
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.ScaleLine());
map.addControl(new OpenLayers.Control.LayerSwitcher());

var newl = new OpenLayers.Layer.Text( "LUG", {location: "./dati.txt"} );
map.addLayer(newl);
Expand Down
5 changes: 4 additions & 1 deletion visualizza-regione.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
$livelli_del_dominio = explode('.', $_SERVER['HTTP_HOST']);
$regione_richiesta = $livelli_del_dominio[0];

if (array_key_exists ($regione_richiesta, $elenco_regioni)) {
if ($regione_richiesta == 'italia') {
$db_regione = file ('./db/Italia.txt');
$title = 'LUG di livello nazionale';
} elseif (array_key_exists ($regione_richiesta, $elenco_regioni)) {
$regione = $elenco_regioni[$regione_richiesta];
$db_regione = file ('./db/'.$regione_richiesta.'.txt');
$title = 'LUG presenti nella regione ' . $regione;
Expand Down