emily

Display an hires Emily Dickinson poem.

by ryanttb

HTML

<script src="http://code.jquerygeo.com/jquery.geo-1.0.0-b1.5.min.js"></script>
<div id="poem"></div>

CSS

#poem {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

JavaScript

// create a widget
var poem = $("#poem").geomap( {
    axisLayout: "image",    
    zoom: 0,
    tilingScheme: null,
    bboxMax: [ 0, 0, 4800, 4800 ],
    center: [ 600, 600 ],
    services: [
        {
            type: "shingled",
            src: function(view) {
                return "http://ids.lib.harvard.edu/ids/view/43271761" +
                    "?s=" + (1 / (view.zoom + 1)) +
                    "&width=" + view.width +
                    "&height=" + view.height +
                    "&x=" + view.bbox[0] + 
                    "&y=" + view.bbox[1];
            }
        }
    ]
} );