Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch from 'size' to 'filesize' key.

  • Loading branch information...
commit 0b29595144b7429525fbe1d74bd9487f34b14b83 1 parent ce617ca
@yhahn yhahn authored
View
2  templates/HUDDownload._
@@ -7,7 +7,7 @@
<a class='download' href='<%= get('download') %>'>
<span class='icon'></span>
<span class='file'><%= get('id') %>.mbtiles</span>
- <span class='size'><%= format('size', get('size')) %></span>
+ <span class='size'><%= format('size', get('filesize')) %></span>
</a>
<div class='description'>
For use with TileStream, the MapBox iPad app and applications that support the <a href='http://www.mbtiles.org'>MBTiles</a> format.
View
2  test/tilestream.test.js
@@ -70,7 +70,7 @@ exports['layer json'] = function() {
var body = JSON.parse(res.body.substring(5, res.body.length - 2));
assert.deepEqual(body, {
id: 'waxtest',
- size: 742400,
+ filesize: 742400,
basename: 'waxtest.mbtiles',
name: 'waxtest',
type: 'baselayer',
View
2  views/Map.bones
@@ -30,7 +30,7 @@ view = views.HUD.extend({
basepath: this.model.options.basepath,
format: this.format
}).extend(this.model);
- if (this.model.get('size')) {
+ if (this.model.get('download')) {
data.buttons.push({id:'download', title:'Download'});
}
$(this.el).html(templates.Map(data));
Please sign in to comment.
Something went wrong with that request. Please try again.