Live data from Hacker News

HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

migrationsmap.net

41–50 of 67 posts

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#41
post #37
post #7

Nice and interesting, well done! I also like the offline caching feature. The only tiny imperfection I see it's in the lines connecting two countries, I'd like to see an arrow so I know if I'm looking at arrivals or departures. Is there a way to filter the GMO database to see only the current migration flow (say, last 5 years)?

Another imperfection to this otherwise interesting tool: it is hard if not impossible to click on small countries or islands. Good luck if you want to know who goes to Guadeloupe. Pascali Islands are hidden by the legend if I'm not mistaking. This is inherent to any "click a country on the world map" tool. A complex and not perfect way to fix it would be to allow zooming, but here I would add a drop-down with a list…

There is a drop-down with a list of countries and the legend is draggable if you wish.

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#42
post #37

Earlier quoted context omitted.

Another imperfection to this otherwise interesting tool: it is hard if not impossible to click on small countries or islands. Good luck if you want to know who goes to Guadeloupe. Pascali Islands are hidden by the legend if I'm not mistaking. This is inherent to any "click a country on the world map" tool. A complex and not perfect way to fix it would be to allow zooming, but here I would add a drop-down with a list…

There is a drop-down with a list of countries and the legend is draggable if you wish.

BTW, you can also click on the name of countries in the legend.

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#43
The blue arrow next to the arrivals and departures selection, acts like a radio buttion, but looks like an arrow. This is misleading... I was wondering why it said "Arrivals => Deprture" which looked weird... only after i clicked around, it was obvious that it was acting like a radio button.

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#44
post #37

Earlier quoted context omitted.

Another imperfection to this otherwise interesting tool: it is hard if not impossible to click on small countries or islands. Good luck if you want to know who goes to Guadeloupe. Pascali Islands are hidden by the legend if I'm not mistaking. This is inherent to any "click a country on the world map" tool. A complex and not perfect way to fix it would be to allow zooming, but here I would add a drop-down with a list…

There is a drop-down with a list of countries and the legend is draggable if you wish.

Great, I overlooked that.

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#46
post #3

The GDP of Somalia is apparently so low it is NaN.

For some countries, the world bank is giving no data. That said, it should not display NaN but rather "No data". I will investigate.

I should have also added that it is a really cool page, aside from the one bug I pointed out.

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#47
It's understandable that several places don't have data (NaN), but I found it curious that Burma/Myanmar is missing from the map [1], much like the "Poland Sea" in a Microsoft Date/Time screen from yesteryear [2].

Did you create this map data or get it from somewhere else? Is this some kind of joke?

[1] http://i.imgur.com/m8Wce.png

[2] https://blogs.msdn.com/b/oldnewthing/archive/2006/10/27/8804...

Re: HTML5 Map of the the World Migrations using SVG, Raphael.js and offline storage

#49

It's understandable that several places don't have data (NaN), but I found it curious that Burma/Myanmar is missing from the map [1], much like the "Poland Sea" in a Microsoft Date/Time screen from yesteryear [2]. Did you create this map data or get it from somewhere else? Is this some kind of joke? [1] http://i.imgur.com/m8Wce.png [2] https://blogs.msdn.com/b/oldnewthing/archive/2006/10/27/8804...

No, it's just a bug. I have been using two sets of data where the name of the countries were not perfectly matching (example: United States VS United States of America). I fixed most of the inconsistencies and showed the map to some people to help me spot the problems. This one slipped through (as the geocoding of Serbia and some NaN).
Post reply on HN