Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:mapbox/tilestream into dev
Browse files Browse the repository at this point in the history
Conflicts:
	routers/Core.bones
  • Loading branch information
kkaefer committed May 12, 2011
2 parents d73592d + 0f6291e commit d7cbd16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/tileset.js
Expand Up @@ -154,7 +154,7 @@ var load = function (filepath, callback) {
}
} else {
tilesets[filepath] = data;
tilelive.acquire(filepath, {}, this);
tilelive.acquire(filepath, this);
}
},
function(err, mbtiles) {
Expand Down
3 changes: 1 addition & 2 deletions routers/Tile.bones
Expand Up @@ -50,8 +50,7 @@ router = Bones.Router.extend({
format: req.params[0] ? req.params[0] : 'layer.json',
x: req.param('x'),
y: req.param('y'),
z: req.param('z'),
jsonp: req.query.callback || 'grid'
z: req.param('z')
};
tilelive.serve(options, function(err, data) {
if (!err) {
Expand Down
2 changes: 1 addition & 1 deletion templates/App._
Expand Up @@ -8,7 +8,7 @@
var basepath = '<%= basepath %>';
location.href.indexOf('#') === -1 &&
window.location.pathname !== basepath &&
(window.location = basepath + '#' + window.location.pathname.substr(basepath.length - 1));
(window.location = basepath + '#!' + window.location.pathname.substr(basepath.length - 1));

// Server-side request info.
var req = { query: {
Expand Down
4 changes: 2 additions & 2 deletions test/tilestream.test.js
Expand Up @@ -48,15 +48,15 @@ exports['error tile'] = function() {
exports['grid tile'] = function() {
assert.response(
command.servers['UI'].server,
{ url: '/1.0.0/waxtest/0/0/0.grid.json' },
{ url: '/1.0.0/waxtest/0/0/0.grid.json?callback=grid' },
{ status: 200, body: /grid\(/ }
);
};

exports['layer json'] = function() {
assert.response(
command.servers['UI'].server,
{ url: '/1.0.0/waxtest/layer.json' },
{ url: '/1.0.0/waxtest/layer.json?callback=grid' },
{ status: 200, body: /grid\(/ }
);
};
Expand Down

0 comments on commit d7cbd16

Please sign in to comment.