Birthplace Mapper Update

Cool map alert!

For those who don’t know, mapping is cool!. Realized this for the umpteenth time as I finally got back to the player birthplace mapper I premiered a few weeks back. After a few hours wrestling with SQL code, and then overcoming a brain cramp on a data formatting issue, I think I’ve managed to get a 99% solution, with a high level of wow! factor thrown in. The remaining 1%, by the way, concerns some players who were apparently born in the ocean, at least according to the geo coordinates in my possession. I’ll get those fixed shortly, but in the meantime, have a look at the improved mapper.

Some of the missing pieces from my first run at this have been repaired – players born outside the US now have information that pops up when you mouse over their map marker. This is a major improvement over the hundreds of blanks the original attempt contained. The info boxes are also tied to the level of information available, thanks to the aforementioned SQL. There were no fewer than 16 combinations of available and missing information across country, state, city, birth year, debut, and name fields in the database. This makes for a rather interesting bit of database code, but you need not worry about that when you view the map. That headache belongs to me!

Kudos again to the Cloudmade project and its flexible mapping offshoot Leaflet. These apps are highly recommended for creating flexible, professional looking maps using GeoJSON (KML works too) and javascript. The speed and interactivity of these maps is spectacular, and there are many features I haven’t even figured out yet. Watch out when that happens!

.A final thanks for the inspiration and clustering approach (the cool stuff that happens with the markers when you zoom in or out) to Dave Leaver, who created the original map using this approach.

FacebooktwitterlinkedinrssFacebooktwitterlinkedinrssby feather
FacebooktwitterredditpinterestlinkedinmailFacebooktwitterredditpinterestlinkedinmailby feather

Birthplace Mapper – Work in Progress

After turning to Google Earth, I wasn’t pleased with the results, so I came back to Leaflet, worked a bit harder to figure it out, and found a great implementation to inspire me. My in process example is here – birthplace mapper. What this example does is to cluster the birthplace markers based their geographic proximity, separating and re-clustering them as you drill up or down.

This is really early in the process, as I plan to add more information to the markers, as well as fixing the ones that don’t currently display – mostly from outside the US, where state information may be absent. Still, the potential for this is high, and makes for a much better navigational experience than the Google Earth version I was working on. Try it out!


FacebooktwitterlinkedinrssFacebooktwitterlinkedinrssby feather
FacebooktwitterredditpinterestlinkedinmailFacebooktwitterredditpinterestlinkedinmailby feather