Changeset 53819 in spip-zone
- Timestamp:
- Oct 28, 2011, 6:05:55 PM (9 years ago)
- Location:
- _plugins_/gis/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gis/trunk/formulaires/configurer_gis.html
r53804 r53819 132 132 map = new mxn.Mapstraction(map_container,'[(#REM|gis_api_utilisee)]'); 133 133 map.setCenterAndZoom(new mxn.LatLonPoint(#ENV{lat,0},#ENV{lon,0}),#ENV{zoom,0}); 134 map.setMapType([mxn.Mapstraction.(#REM|gis_maptype_utilise)]); 134 // Pour l'API Openlayers, la methode n'existe pas 135 try { 136 map.setMapType([mxn.Mapstraction.(#REM|gis_maptype_utilise)]); 137 } 138 catch(err) { 139 $(".editer_maptype").hide(); 140 } 135 141 136 142 map.addControls({ -
_plugins_/gis/trunk/formulaires/configurer_gis.php
r51271 r53819 9 9 $erreurs = array(); 10 10 11 if(in_array(_request('api'), array('cloudmade','google' ))){11 if(in_array(_request('api'), array('cloudmade','google','yandex'))){ 12 12 $obligatoire = "api_key_"._request('api'); 13 13 if(!_request($obligatoire)){ -
_plugins_/gis/trunk/gis_fonctions.php
r53804 r53819 1 1 <?php 2 3 include_spip('inc/config'); 2 4 3 5 /** … … 140 142 $defaut = _GIS_APIS_DEFAUT; 141 143 } 142 $config = @unserialize($GLOBALS['meta']['gis']);143 return $config ['api'] ? $config['api']: $defaut;144 $config = lire_config('gis/api'); 145 return $config ? $config : $defaut; 144 146 } 145 147 } … … 156 158 $defaut = _GIS_MAPTYPES_DEFAUT; 157 159 } 158 $config = @unserialize($GLOBALS['meta']['gis']);159 return $config ['maptype'] ? $config['maptype']: $defaut;160 $config = lire_config('gis/maptype'); 161 return $config ? $config : $defaut; 160 162 } 161 163 }
Note: See TracChangeset
for help on using the changeset viewer.