X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=www%2Fplugins%2Fgis%2Fgis_options.php;fp=www%2Fplugins%2Fgis%2Fgis_options.php;h=72616c6d8a948de5c9e98f37293a4f9655270e92;hb=ebeac5db7a6b2678204355fcf4837d4986f2b2a3;hp=a02cc192fd605e974606e18112b7b97f684bf0d6;hpb=0048daaa36f2abca86d683a21af54cf62f47a102;p=lhc%2Fweb%2Fclavette_www.git diff --git a/www/plugins/gis/gis_options.php b/www/plugins/gis/gis_options.php index a02cc19..72616c6 100755 --- a/www/plugins/gis/gis_options.php +++ b/www/plugins/gis/gis_options.php @@ -9,7 +9,7 @@ $GLOBALS['logo_libelles']['id_gis'] = _T('gis:libelle_logo_gis'); $config = @unserialize($GLOBALS['meta']['gis']); -$GLOBALS['gis_layers'] = array ( +$gis_layers = array ( 'openstreetmap_mapnik' => array( 'nom' => 'OpenStreetMap', 'layer' => 'L.tileLayer.provider("OpenStreetMap")' @@ -31,7 +31,7 @@ $GLOBALS['gis_layers'] = array ( 'layer' => 'L.Google("ROADMAP")' ), 'google_satellite' => array( - 'nom' => 'Google Satelitte', + 'nom' => 'Google Satellite', 'layer' => 'L.Google("SATELLITE")' ), 'google_terrain' => array( @@ -58,6 +58,10 @@ $GLOBALS['gis_layers'] = array ( 'nom' => 'Thunderforest Outdoors', 'layer' => 'L.tileLayer.provider("Thunderforest.Outdoors")' ), + 'opentopomap' => array( + 'nom' => 'OpenTopoMap', + 'layer' => 'L.tileLayer.provider("OpenTopoMap")' + ), 'openmapsurfer' => array( 'nom' => 'OpenMapSurfer', 'layer' => 'L.tileLayer.provider("OpenMapSurfer")' @@ -160,4 +164,8 @@ $GLOBALS['gis_layers'] = array ( ) ); -?> \ No newline at end of file +if (isset($GLOBALS['gis_layers']) and is_array($GLOBALS['gis_layers'])) { + $GLOBALS['gis_layers'] = array_merge($gis_layers,$GLOBALS['gis_layers']); +} else { + $GLOBALS['gis_layers'] = $gis_layers; +}