$config = @unserialize($GLOBALS['meta']['gis']);
-$GLOBALS['gis_layers'] = array (
+$gis_layers = array (
'openstreetmap_mapnik' => array(
'nom' => 'OpenStreetMap',
'layer' => 'L.tileLayer.provider("OpenStreetMap")'
'layer' => 'L.Google("ROADMAP")'
),
'google_satellite' => array(
- 'nom' => 'Google Satelitte',
+ 'nom' => 'Google Satellite',
'layer' => 'L.Google("SATELLITE")'
),
'google_terrain' => 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")'
)
);
-?>
\ 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;
+}