# Modest Maps JS

zoom in | zoom out
pan left | pan right | pan down | pan up

The above div is a map initialized like so:

    // "import" the namespace
    var MM = com.modestmaps;

    var provider = new MM.MapProvider(function(coord) {
        var img = parseInt(coord.zoom) +'-r'+ parseInt(coord.row) +'-c'+ parseInt(coord.column) + '.jpg';
        return 'http://osm-bayarea.s3.amazonaws.com/' + img;
    });

    map = new MM.Map('map', provider, new MM.Point(900,900))

    var f = new MM.Follower(map, new MM.Location(37.811530, -122.2666097), '° Broadway and Grand');

    map.setCenterZoom(new MM.Location(37.811530, -122.2666097), 14);

Hands up who wants overlays?