User talk:Clément CHADEYRON

From Fab Lab Wiki - by NMÍ Kvikan
Revision as of 21:19, 13 April 2015 by Trox (Talk | contribs)

Jump to: navigation, search

Welcome to NMÍ Kvikan! We hope you will contribute much and well. You will probably want to read the help pages. Again, welcome and have fun! trox [at] fabfolk [.] com 07:37, 6 December 2012 (UTC)

Your Lab

thanks for adding your lab -- would you mind to take a couple of minutes to replace the “open” statement by a self-defined rating according to

--trox [at] fabfolk [.] com 21:19, 13 April 2015 (UTC)

Column: Continent

Thanks for adding that information. Unfortunately, this column is probably screwing up the scraper wiki script -- it comes now with a count of 474 labs while there are some 230+. I have now fixed the scraper script; hope it will correct on next run.

Further, I don't feel it makes the table much better readable (like many of the other extra additions that came in over the last few months). Do you have any experience with semantic wiki extension that could probably handle the data much more elegantly?

--trox [at] fabfolk [.] com 15:51, 26 June 2013 (UTC)

i have seen the code of the scrapper wiki for the map, and i know that it have to be update , but i didn't have access to do it by myself ;-) i thinks we have to clear/flush the data stored, and run the script again in order to update the database.

i feel more confortable to be near européean other fablabs, than in order by alphabetical. now, we can manually count thant in europe there is XX fablabs. it was not possible before ! what other additions did you see last few months ?

i dont like wiki's, so i do some efforts in my head to update them, i cant bear this systeme. but everybody use them, so i must use them, because nothing yet exist ... so i dont have explore the semantic wiki.

is it possible to update the map with a more user friendly tile ? like this one : it's more DIY style, than the default open street map witch is very "gouvernemental/city oriented/national geographic center" view.

Hi Clément

the update of the scraper is on its way, I've changed the code and am waiting for Peter Uithoven to flush the data.

no system is perfect, and a wiki is certainly not the easiest platform to use. but this wiki has one big advantage: it is well known and well used; it has become a point of reference (and that was quite a bit of work)

regarding improving the map, I'd rather focus on the quality of input data (hence my question about semantic wiki)

--trox [at] fabfolk [.] com 09:54, 28 June 2013 (UTC)

hi Peter, no system is perfect, i know. not the easier, i confirm :) yes, big advantage ! and this is why i use it :) how does the semantic wiki could make more ? because it is a reference well known, journalists use this map. and the default map is not beautifull. i understand you prefere to increase the quality of data. but if its possible, why not use it, it doesn't make bad for anybody. maybe most people don't care.

Hi Clément

I hear you, yet the map resides at FabLabAmersfoort originally (we just pull an iframe), and Peter Uithoven is not going to do any additional work on it for the time being

We could probably create our own map with some code like this below (this is what I did to create a BeNeLux map here:

<!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <title>Fablabs BeNeLux</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="robots" content="" /> <link rel="stylesheet" href="" /> <!--[if lte IE 8]> <link rel="stylesheet" href="" /> <![endif]--> <script src=""></script> <link rel="stylesheet" href=""> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script type="text/javascript"> var map; var scraperURL = "*%20from%20%60swdata%60%20limit%20500"; function initmap() { //map = new L.Map('map'); //var osmUrl='http://{s}{z}/{x}/{y}.png'; //osm mapnik var osmUrl='{z}/{x}/{y}.jpg'; // MapQuest //var osmUrl='{z}/{x}/{y}.jpg'; // MapQuest Aerial //var osmUrl='{z}/{x}/{y}.jpg'; // Migurski's Terrain (US only) //var osmUrl='{z}/{x}/{y}.png'; //OpenCycleMap //var osmUrl='{z}/{x}/{y}.png'; //OpenCycleMap Transport (experimental) var osmAttrib='Map data © OpenStreetMap contributors'; var osm = new L.TileLayer(osmUrl, {minZoom: 0, maxZoom: 8, attribution: osmAttrib}); var map = new L.Map('map', { center: new L.LatLng(51.4429631, 5.4795029), zoom: 6, layers: [(osm)] }); var FablabIcon = L.Icon.extend({ iconUrl: '', shadowUrl: null, iconSize: new L.Point(20, 20), iconAnchor: new L.Point(10, 10), popupAnchor: new L.Point(10, 0) }); $.getJSON(scraperURL, function(data) { //console.log("data: ",data); console.log("data.length: ",data.length); $.each(data, function(key, val) { var fablab = val; //console.log(" ",fablab); var lat =; var lng = fablab.lng; if(lat != "") { var fablabIcon = new FablabIcon(); var markerLocation = new L.LatLng(lat,lng); var marker = new L.Marker(markerLocation, {icon: fablabIcon}); map.addLayer(marker); popupContentHTML = "<h2>""</h2>"+fablab.location; if( != "" && != "   ") popupContentHTML += "<br><a href='""' target='_blank'>""</a>"; popupContentHTML += "<br><a href='' target='_blank'>Status</a>: "+fablab.rating; marker.bindPopup(popupContentHTML); //.openPopup(); } }); $('#counter').append('<b>'+data.length+'</b> Fablabs'); }); } </script> <style> html, body, #map { width: 100%; height: 100%; margin: 0; padding: 0; } #scraperwikipane { border: none; display:block; position:fixed; top:0px; right:0px; background:#F4F4F4; margin: 0em; padding: 6pt 6pt 4pt 6pt; font-size: 10pt; z-index: 8675309; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-left-radius: 5px; font-family: Tahoma, sans-serif; font-size: 8pt; text-align: right; } #scraperwikipane a { width:167px; height:17px; margin:0; padding: 0; border-style: none; color: #0078A8; } #scraperwikipane a img { border-style: none } #mapquestCredits { margin:0 0 4pt 0; } #counter { border: none; display:block; position:fixed; bottom:0px; left:0px; background:#F4F4F4; margin: 0em; padding: 1pt 4pt 1pt 2pt; z-index: 99; -webkit-border-top-right-radius: 5px; -moz-border-radius-top-right: 5px; border-top-right-radius: 5px; font-family: Tahoma, sans-serif; font-size: 10pt; } </style> </head> <body onload="initmap();"> <div id="map"></div> <div id="scraperwikipane"> <a href="" target="_blank"> <img alt="Powered by ScraperWiki" src="" /></a> <br/> <p id="mapquestCredits">Locations by <a href="" target="_blank">MapQuest Nominatim</a></p> Source: <a href="" target="_blank"></a> </div> <div id="counter"></div> </body> </html>

For example :


OK ... but I think this map is really ugly -- artsy fartsy -- are there other tiling options?

Yes, somes.

PS: by the way ... there will be a new site to register FabLabs soon ... so it might not be worthwhile to invest too much time to optimize this wiki here :(