Death’s Door Spirits: Mapping Wisconsin’s Finest Craft Distillery

by David Heyman on November 22, 2010

I only have a few rules in life. One of them is when the makers of this gin offer you a straight-up trade–bottles for maps–you take it… and you don’t cut your partners in on the deal. That was the situation when a friend-of-a-friend approached me to build this simple locator Google maps mashup which I took on as a side-project away from my normal Axis Maps work.


Death’s Door Spirits is a craft distillery based out of Washington Island, WI and distilled in Madison, WI. They use locally-sourced ingredients for their gin, vodka, and whisky which they distill in small batches. While their small-scale makes their products excellent, it also makes them tricky to locate. The purpose of the map is to simply show where you can buy bottles or cocktails containing their spirits.

Since the map was so straightforward, it gave me the opportunity to experiment with a few new technologies I’ve been meaning to check out. Here’s what I thought…

Death_s Door Spirits Locator

Styled Google Maps: Death’s Door has a fantastic graphic identity thanks to some great work by Grip Design (who also contributed some designs to this map). I wanted the map to fit in with their existing style while stripping out a lot of the extra Google Maps data that would clutter up a map like this. Google Maps Styled Map API allowed me to do both. The styled map wizard was helpful for sketching out styles but mostly I was making whole groups of features invisible and going with stock colors for the roads and water. Not being able to input RGB values for these styles made the process harder than it should have been.

Amazon SimpleDB / CloudFusion: I’ve been a big fan of Amazon’s SimpleDB technology since we used at as the foundation for indiemapper user management. I’ve found it to be more reliable than MySQL and faster as well (but that could just be our budget hosting plan). It was a little unapproachable to me at first but the CloudFusion PHP library made it as easy–if not easier–to query the database and parse the results for the map. The biggest missing feature here is a nice front-end browser like PHPMyAdmin which would have allowed the client to edit their data directly. Instead, I had to build some rudimentary tools so they could manage their data themselves.

Google Font Directory: It was nice to have access to a wider variety of fonts than just the standard web-safe font-family sets. The Google Font Directory gave me access to a limited but FREE selection of a nice variety of fonts distributed across Google’s massive network. Most useful was Yanone Kaffeesatz which is a dead ringer for the Death’s Door title font. The fonts can be a lot to load at runtime so it was important to pare down only to the fonts I was using in the map.

Death_s Door Spirits Locator-1

jQuery Ajax / jQueryUI: Made it incredibly easy for someone with my level of programming skill (let’s call it “recreational” to be polite) to efficiently get the data into the map and build some nice UI effects like animation and the accordion component. I can’t recommend it highly enough so there’s going to be no italics section with the caveats in it.

You can view the full map here …and if you’ve got any good cocktail recipes, that’s what the comments are for.

Death’s Door Spirits Locator

There are 4 comments in this article:

  1. December 4, 2010Adam Fritzler says:

    Nice work! If I read this correctly, you’re using SimpleDB for the location list? How did you approach doing geographic distance searches with SimpleDB? Simplify it to counties?

  2. December 7, 2010dave says:

    Thanks, Adam!

    You’re right. All the data is stored in SimpleDB, attributes and geography. Since it’s just simple point locations, there’s just a field for both lat and lon which essentially makes the data just a simple table (except for being able to define multiple attribute pairs for locations that stock multiple kinds of booze).

    To do the location search, I use this function:

    function cal_distance(lat, lon, target)
    var dis_lat, dis_lng, distance = "";
    var matches = new Array();

    for (var i = 0; i < markers.length - 1; i++)
    dis_lat = markers[i].getPosition().lat() - lat;
    dis_lng = markers[i].getPosition().lng() - lon;

    distance = Math.pow(Math.pow(dis_lat, 2) + Math.pow(dis_lng, 2), 0.5) * 111;

    distance = Math.ceil(distance * 10000) / 10000;

    if( distance * 1.609344 <= target )
    markers[i].distance = Math.round(distance * 1.609344 * 10) / 10;
    return matches;

    I loop through each point (not very efficient; lots of room for improvement here) calculate the change in x and y (“Delta X” if you’re a high school geometry teacher) and then run the standard equation for distance to determine the distance from the target:

    Distance Formula

    From there I do some unit conversion (multiply by 111 to get from degrees to kilometers and multiply by 1.6 to get from kilometers to miles) and then push the matches into their own array so I can adjust the display from there.

    It’s not the most efficient or accurate function but for a map of this size and complexity, it does the job just fine.

  3. January 7, 2011Jeff says:

    Of course the punchline to all this is that Deaths Door Distillery is HQ in Madison WI where they contract out all their distilling. They are pretty much a marketing co.

  4. February 1, 2013Get the facts says:

    Hi there, I discovered your site by the use of Google while searching for a related topic, your site got here up, it seems great. I’ve bookmarked it in my google bookmarks.