Widget:CarteFablabs

De fablabo
Aller à : navigation, rechercher

usage : {{#widget:CarteFablabs |nom=(optionnel) |longitude=51(optionnel) |latitude=3.56(optionnel) |zoom=1 a 18(optionnel) |largeur=(optionnel) |hauteur=(optionnel) }}


on peut utiliser un droplet présent sur cette page pour connaitre les coords d'un objet :http://www.mediawikiwidgets.org/Google_Maps


inspiration: http://www.mediawikiwidgets.org/w/index.php?title=Widget:Google_Maps&action=edit


ne pas effacer ! ça sert ! CSV

cartographie tous les fablabs

 LongLatt
AMI-multimédia4.643.6
Angers Factory-0.5447.47
ArtLab2.348.82
Artilect1.443.5
Atelier des Beaux boulons47.83.57
Barakason-1.5547.1861376
Beta PI-0.14346.221
CCSTI Grenoble5.745.1
COAGUL5.1147.31
Carrefour numérique : Cité des Sciences2.30077748.89741
Centre socioculturel Georges-Brassens2.448.9
Cerfa Verre5.748.5
Chemille-0.7147.21
ClubInfoAndernos-1.0844.74
CoAgul5.1147.31
Cotedopale1.91457550.956011
Cyber-base Paese Novo9.442.6
EPN Armand jubien
ETNA (Espace Technologies Numériques et Autoformation)1.30077747.5
EasyCeram1.296447700000044345.8597462
Ecodesign Fablab2.4548.87
Ecolab7,20243,683
Ecole Centrale5.4343.34
Electrolab2.184431748.8951104
Epn st James-1.348.5
Espace num de Folelli9.442.4
Etablisandco-1.15905246.149499
Etoele2.349.89
Etolab2.30077749.89741
FOL4.845.7
Fab'Alpes6.073954444.5594697
FabLab du CESI Rouen1.089895749.4753057
FabMake-1.587310047.1651340
Fablab Blanc Mesnil
Fablab Château Thierry3.3949.03
Fablab Robert-Houdin1.305024647.5833464
Fablab Tarbes0.0443.22
Fablab Tourangeau0.66864047.392739
Fablab d'Arras2.730292100000042450.2974792
Fablab-lannion-3.4648.73
FablabLille3.150.6
FablabUtc2.81903449.415238
Fablaborleans1.947.9
Fabmake-1.587310047.1651340
Fabpau-0.343.2
Faclab248.9
FormaLAB3.845
GSILab6.148.658
Goldorhack-1.56433248.841858
GraouLab6.174739549.0993719
… autres résultats


L.marker([51.5, -0.09]).addTo(map) .bindPopup("Hello world!
I am a popup.").openPopup();




<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.css" />

<script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script>

<script>

///fonction pour recuperer la liste des coords des labs function requete(url) { if (window.XMLHttpRequest) // Mozilla, Safari,...

  xhr = new XMLHttpRequest();

else if (window.ActiveXObject)

       xhr = new ActiveXObject("Microsoft.XMLHTTP");

if (!xhr) {

 alert("Abandon : Impossible de créer une instance Ajax");
 return false;

} xhr.onreadystatechange = reponse; xhr.open("GET", url, true); xhr.send(null); }

function reponse() { if (xhr.readyState == 4) {

if (xhr.status == 200) {

//alert(xhr.responseText);

// document.getElementById("rep").innerHTML=xhr.responseText;

// alert(xhr.responseText);

//le fichier arrive en CSV (valeurs séparées par des virgules) var lignes=new RegExp("[\n]+", "g"); var tableau=xhr.responseText.split(lignes); var colones=new RegExp("[,]+", "g"); for(var i=1;i<tableau.length-1;i++)

{
  var coords=tableau[i].split(colones);
 // alert(coords[0]);
  L.marker([coords[2], coords[1]]).addTo(map).bindPopup(""+coords[0]+"");
}


} 
else {
   alert("La requête AJAX a rencontré un problème ..");
 }
}

}



///////////fin javaload


var map = L.map().setView([, ], );

L.tileLayer('http://{s}.tile.cloudmade.com/7ad1b23bf3f347f8b0ab2416f66737fc/997/256/{z}/{x}/{y}.png', { maxZoom: 18, attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://cloudmade.com">CloudMade</a>' }).addTo(map);




//appel de la liste des labs requete("Sp%C3%A9cial:Ask/-5B-5BCategory:Fablabs-5D-5D/-3FLong-23-2D/-3FLatt-23-2D/limit%3D50/format%3Dcsv/sep%3D,/headers%3Dshow");

</script>