Connector

<div id='map-div'></div>
<a class='attribution' href='http://mapbox.com/tileset/geography-class'>Geography Class</a>
<script>
wax.tilejson('http://d.tiles.mapbox.com/v2/mapbox.blue-marble-topo-bathy-jan.jsonp',
function(tilejson) {
    var map = new OpenLayers.Map({
        div: 'map-div',
        controls: [
            new OpenLayers.Control.Navigation()
        ],
        layers: [
            wax.ol.connector(tilejson)
        ]
    });
    map.zoomTo(2);
});
</script>

API

var layer = new wax.ol.connector(tilejson)
Returns a new OpenLayers.Layer.XYZ object, configured per TileJSON snippet.
blog comments powered by Disqus