Skip to content

Commit

Permalink
Add filter support for $id keys (#2888)
Browse files Browse the repository at this point in the history
* Update to feature-filter 2.2.0

This release adds support for `$id` keys: mapbox/mapbox-gl-style-spec#391

* Update to vector-tile 1.3.0

This release adds a public "id" property to VectorTileFeature: mapbox/vector-tile-js#43

* update to geojson-vt 2.4.0

* make sure id=0 works for geojson
  • Loading branch information
jfirebaugh authored and lucaswoj committed Aug 10, 2016
1 parent e9287d8 commit 28634c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/util/vectortile_to_geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function Feature(vectorTileFeature, z, x, y) {

this.properties = vectorTileFeature.properties;

if (vectorTileFeature._id) {
this.id = vectorTileFeature._id;
if (vectorTileFeature.id != null) {
this.id = vectorTileFeature.id;
}
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"dependencies": {
"csscolorparser": "^1.0.2",
"earcut": "^2.0.3",
"feature-filter": "^2.1.0",
"feature-filter": "^2.2.0",
"geojson-rewind": "^0.1.0",
"geojson-vt": "^2.3.0",
"geojson-vt": "^2.4.0",
"gl-matrix": "^2.3.1",
"grid-index": "^1.0.0",
"mapbox-gl-function": "^1.2.1",
Expand All @@ -33,7 +33,7 @@
"supercluster": "^2.0.1",
"unassertify": "^2.0.0",
"unitbezier": "^0.0.0",
"vector-tile": "1.2.1",
"vector-tile": "^1.3.0",
"vt-pbf": "^2.0.2",
"webworkify": "^1.3.0",
"whoots-js": "^2.0.0"
Expand Down

0 comments on commit 28634c7

Please sign in to comment.