Changeset 53804 in spip-zone
- Timestamp:
- Oct 28, 2011, 3:26:15 PM (9 years ago)
- Location:
- _plugins_/gis/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/gis/trunk/formulaires/configurer_gis.html
r53681 r53804 51 51 defaut=#GET{api_defaut},valeur_forcee=#GET{api_forcee},readonly=#GET{api_readonly},disable=#GET{api_disable},explication=#GET{api_explications}, 52 52 datas=#GET{apis}})] 53 54 [(#SET{maptypes,[(#ARRAY{ 55 ROAD,<:gis:cfg_lbl_maptype_carte:>, 56 SATELLITE,<:gis:cfg_lbl_maptype_satellite:>, 57 HYBRID,<:gis:cfg_lbl_maptype_hybride:>, 58 PHYSICAL,<:gis:cfg_lbl_maptype_relief:>})]})] 59 60 [(#VAL{_GIS_MAPTYPES}|defined|oui) 61 [(#EVAL{_GIS_MAPTYPES}|unserialize|is_array|oui)#SET{apis,#EVAL{_GIS_MAPTYPES}|unserialize}] 62 ] 63 64 [(#SET{maptype_defaut,carte})] 65 [(#VAL{_GIS_MAPTYPES_DEFAUT}|defined|oui) 66 [(#SET{maptype_defaut,[(#EVAL{_GIS_MAPTYPES_DEFAUT})]})] 67 ] 68 [(#VAL{_GIS_MAPTYPES_FORCE}|defined|oui) 69 [(#SET{maptype_readonly,readonly})] 70 [(#SET{maptype_disable,disabled})] 71 [(#SET{maptype_force,[(#EVAL{_GIS_MAPTYPES_FORCE})]})] 72 [(#SET{maptype_explications,<:gis:explication_maptype_force:>})] 73 ] 74 [(#SAISIE{selection,maptype, 75 label=<:gis:cfg_lbl_maptype:>, 76 cacher_option_intro=oui, 77 defaut=#GET{maptype_defaut},valeur_forcee=#GET{maptype_force},readonly=#GET{maptype_readonly},disable=#GET{maptype_disable},explication=#GET{maptype_explications}, 78 datas=#GET{maptypes}})] 53 79 54 80 [(#SAISIE{oui_non,geocoder, … … 106 132 map = new mxn.Mapstraction(map_container,'[(#REM|gis_api_utilisee)]'); 107 133 map.setCenterAndZoom(new mxn.LatLonPoint(#ENV{lat,0},#ENV{lon,0}),#ENV{zoom,0}); 108 134 map.setMapType([mxn.Mapstraction.(#REM|gis_maptype_utilise)]); 135 109 136 map.addControls({ 110 137 pan: true, -
_plugins_/gis/trunk/gis_fonctions.php
r50487 r53804 144 144 } 145 145 } 146 147 /** 148 * Définition du fond cartographique à utiliser en prenant compte les defines 149 */ 150 function gis_maptype_utilise(){ 151 $defaut = 'ROAD'; 152 if(defined('_GIS_MAPTYPES_FORCE')){ 153 return _GIS_MAPTYPES_FORCE; 154 }else{ 155 if(defined('_GIS_MAPTYPES_DEFAUT')){ 156 $defaut = _GIS_MAPTYPES_DEFAUT; 157 } 158 $config = @unserialize($GLOBALS['meta']['gis']); 159 return $config['maptype'] ? $config['maptype'] : $defaut; 160 } 161 } 146 162 ?> -
_plugins_/gis/trunk/lang/gis_en.php
r51468 r53804 40 40 'cfg_lbl_geocoder' => 'Geocoder', 41 41 'cfg_lbl_geolocaliser_user_html5' => 'At the creation step, center the map on the location of the user', 42 'cfg_lbl_maptype' => 'Cartografic background', 43 'cfg_lbl_maptype_carte' => 'Road', 44 'cfg_lbl_maptype_satellite' => 'Satellite', 45 'cfg_lbl_maptype_hybride' => 'Hybrid', 46 'cfg_lbl_maptype_relief' => 'Physical', 42 47 'cfg_titre_gis' => 'GIS', 43 48 … … 48 53 'editer_gis_titre' => 'The geolocated points', 49 54 'erreur_recherche_pas_resultats' => 'No point corresponds to the searched text.', 50 'explication_api_forcee' => 'L\'API est imposée par un autre plugin ou squelette.', # NEW 55 'explication_api_forcee' => 'This API has been enforced by another plugin or template.', 56 'explication_maptype_force' => 'This cartographic background has been enforced by another plugin or template.', 51 57 52 58 // F -
_plugins_/gis/trunk/lang/gis_es.php
r53510 r53804 40 40 'cfg_lbl_geocoder' => 'Geocoder', 41 41 'cfg_lbl_geolocaliser_user_html5' => 'Centrar el mapa sobre la ubicación del usuario a la creación', 42 'cfg_lbl_maptype' => 'Fondo cartográfico', 43 'cfg_lbl_maptype_carte' => 'Mapa base', 44 'cfg_lbl_maptype_satellite' => 'Satelital', 45 'cfg_lbl_maptype_hybride' => 'Híbrido', 46 'cfg_lbl_maptype_relief' => 'Relieve', 42 47 'cfg_titre_gis' => 'GIS', 43 48 … … 49 54 'erreur_recherche_pas_resultats' => 'Ningún punto corresponde a la búsqueda.', 50 55 'explication_api_forcee' => 'La API esta impuesta por un otro plugin o esqueleto.', 56 'explication_maptype_force' => 'El fondo cartográfico esta impuesto por un otro plugin o esqueleto.', 51 57 52 58 // F -
_plugins_/gis/trunk/lang/gis_fr.php
r51277 r53804 38 38 'cfg_lbl_geocoder' => 'Geocoder', 39 39 'cfg_lbl_geolocaliser_user_html5' => 'Centrer la carte sur l\'emplacement de l\'utilisateur à la création', 40 'cfg_lbl_maptype' => 'Fond cartographique', 41 'cfg_lbl_maptype_carte' => 'Carte', 42 'cfg_lbl_maptype_satellite' => 'Satellite', 43 'cfg_lbl_maptype_hybride' => 'Hybride', 44 'cfg_lbl_maptype_relief' => 'Relief', 40 45 'cfg_titre_gis' => 'GIS', 41 46 … … 47 52 'erreur_recherche_pas_resultats' => 'Aucun point ne correspond à la recherche.', 48 53 'explication_api_forcee' => 'L\'API est imposée par un autre plugin ou squelette.', 54 'explication_maptype_force' => 'Le fond cartographique est imposé par un autre plugin ou squelette.', 49 55 50 56 // F -
_plugins_/gis/trunk/lang/gis_sk.php
r51468 r53804 40 40 'cfg_lbl_geocoder' => 'Geocoder', 41 41 'cfg_lbl_geolocaliser_user_html5' => 'Pri vytváraní vycentrujte mapu na polohe používateľa', 42 'cfg_lbl_maptype' => 'Fond cartographique', # NEW 43 'cfg_lbl_maptype_carte' => 'Carte', # NEW 44 'cfg_lbl_maptype_satellite' => 'Satellite', # NEW 45 'cfg_lbl_maptype_hybride' => 'Hybride', # NEW 46 'cfg_lbl_maptype_relief' => 'Relief', # NEW 42 47 'cfg_titre_gis' => 'GIS', 43 48 … … 49 54 'erreur_recherche_pas_resultats' => 'Vyhľadávaného textu sa netýka žiaden bod.', 50 55 'explication_api_forcee' => 'L\'API est imposée par un autre plugin ou squelette.', # NEW 56 'explication_maptype_force' => 'Le fond cartographique est imposé par un autre plugin ou squelette.', # NEW 51 57 52 58 // F -
_plugins_/gis/trunk/modeles/carte_gis.html
r53774 r53804 97 97 ] 98 98 99 [(#SET{maptype, #REM|gis_maptype_utilise})] 99 100 [(#ENV{type}|oui) 100 #SET{type,ROAD} 101 [(#ENV{type}|=={'carte'}|oui) #SET{type,ROAD} ] 102 [(#ENV{type}|=={'satellite'}|oui) #SET{type,SATELLITE} ] 103 [(#ENV{type}|=={'hybride'}|oui) #SET{type,HYBRID} ] 104 [(#ENV{type}|=={'relief'}|oui) #SET{type,PHYSICAL} ] 105 map[(#GET{id})].setMapType([mxn.Mapstraction.(#GET{type})]); 101 [(#ENV{type}|=={'carte'}|oui) #SET{maptype,ROAD} ] 102 [(#ENV{type}|=={'satellite'}|oui) #SET{maptype,SATELLITE} ] 103 [(#ENV{type}|=={'hybride'}|oui) #SET{maptype,HYBRID} ] 104 [(#ENV{type}|=={'relief'}|oui) #SET{maptype,PHYSICAL} ] 106 105 ] 106 map[(#GET{id})].setMapType([mxn.Mapstraction.(#GET{maptype})]); 107 107 108 108 [(#ENV{no_control,#ENV{aucun_controle}}|!={oui}|oui) -
_plugins_/gis/trunk/modeles/carte_gis_preview.html
r53674 r53804 13 13 var marker; 14 14 map_preview = new mxn.Mapstraction(map_preview_container,'[(#REM|gis_api_utilisee)]'); 15 map_preview.setMapType([mxn.Mapstraction.(#REM|gis_maptype_utilise)]); 15 16 16 17 map_preview.addControls({ -
_plugins_/gis/trunk/saisies/carte.html
r53628 r53804 66 66 form_map = new mxn.Mapstraction(map_container,'[(#REM|gis_api_utilisee)]'); 67 67 form_map.setCenterAndZoom(new mxn.LatLonPoint(#ENV{lat,#CONFIG{gis/lat,0}},#ENV{lon,#CONFIG{gis/lon,0}}),#ENV{zoom,#CONFIG{gis/zoom,0}}); 68 form_map.setMapType([mxn.Mapstraction.(#REM|gis_maptype_utilise)]); 68 69 form_map.addControls({ 69 70 pan: true,
Note: See TracChangeset
for help on using the changeset viewer.