Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1477 from mapbox/usethekey
Browse files Browse the repository at this point in the history
Support key_field_as_attribute postgis option
  • Loading branch information
Dane Springmeyer committed Oct 10, 2015
2 parents 4f9f79b + c33423c commit 4cdf2fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"js-yaml": "https://github.com/mapbox/js-yaml/tarball/scalar-styles",
"fstream": "1.0.x",
"tar": "2.1.x",
"mapnik": "3.4.7",
"mapnik": "3.4.8",
"mapnik-reference": "~8.5.0",
"carto": "0.15.2",
"carto": "0.15.3",
"tilelive": "~5.9.0",
"tilelive-bridge": "~1.6.0",
"tilelive-vector": "~3.5.0",
Expand Down
1 change: 1 addition & 0 deletions templates/layerpostgis.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ <h3 class='fl'>
<input type='hidden' name='Datasource-type' value='postgis' />
<input type='hidden' name='Datasource-max_size' value='512' />
<input type='hidden' name='Datasource-srid' value='<%= obj.Datasource.srid %>' />
<input type='hidden' name='Datasource-key_field_as_attribute' value='<%= typeof obj.Datasource.key_field_as_attribute !== undefined ? obj.Datasource.key_field_as_attribute : 1 %>' />
</section>
<section class='clearfix pad2x pad1y keyline-bottom'>
<label class='pad0y col3 inline'>Extent </label>
Expand Down
1 change: 0 additions & 1 deletion test/duplicate_module.pretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var count_module = function (name, callback) {
'mbtiles',
'mapnik-reference',
'carto',
'node-pre-gyp'
].forEach(function(mod) {
tape.test('there should only be one ' + mod + ' module, otherwise you are asking for pwnage', function (t) {
count_module(mod, function (err, count) {
Expand Down
2 changes: 1 addition & 1 deletion test/source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ test('source.mbtilesExport: verify export', function(t) {
src._db.get('select count(1) as count, sum(length(tile_data)) as size from tiles;', function(err, row) {
t.ifError(err);
t.equal(row.count, 5461);
t.equal(row.size, 376830);
t.equal(row.size, 376847);
check([
[0,0,0],
[1,0,0],
Expand Down

0 comments on commit 4cdf2fd

Please sign in to comment.