Skip to content

Commit

Permalink
Merge pull request #95 from mapzen/add-sort-min_zoom-places
Browse files Browse the repository at this point in the history
Add sort by `min_zoom` to `places` layer
  • Loading branch information
rmarianski committed Nov 6, 2015
2 parents 00150c3 + f39686f commit c1049ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TileStache/Goodies/VecTiles/sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def places(features, zoom):
features.sort(key=_place_key_desc, reverse=True)
features.sort(key=_by_scalerank)
features.sort(key=_by_feature_property('mz_n_photos'), reverse=True)
features.sort(key=_by_feature_property('min_zoom'))
return features


Expand Down

0 comments on commit c1049ee

Please sign in to comment.