Skip to content

Commit

Permalink
Use geojson-vt 3.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Mar 29, 2018
1 parent 375c6d0 commit 1390662
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"csscolorparser": "~1.0.2",
"earcut": "^2.1.3",
"geojson-rewind": "^0.3.0",
"geojson-vt": "git://github.com/mapbox/geojson-vt.git#line-metrics",
"geojson-vt": "^3.1.0",
"gray-matter": "^3.0.8",
"grid-index": "^1.0.0",
"jsonlint-lines-primitives": "~1.6.0",
Expand Down
8 changes: 4 additions & 4 deletions src/data/bucket/line_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ class LineBucket implements Bucket {
addLine(vertices: Array<Point>, feature: VectorTileFeature, join: string, cap: string, miterLimit: number, roundLimit: number) {
let lineDistances = null;
if (!!feature.properties &&
feature.properties.hasOwnProperty('$distance_start') &&
feature.properties.hasOwnProperty('$distance_end')) {
feature.properties.hasOwnProperty('mapbox_clip_start') &&
feature.properties.hasOwnProperty('mapbox_clip_end')) {
lineDistances = {
start: feature.properties.$distance_start,
end: feature.properties.$distance_end,
start: feature.properties.mapbox_clip_start,
end: feature.properties.mapbox_clip_end,
tileTotal: undefined
};
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4316,9 +4316,9 @@ geojson-rewind@^0.3.0:
concat-stream "~1.6.0"
minimist "1.2.0"

geojson-vt@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/geojson-vt/-/geojson-vt-3.0.0.tgz#a24cae5488ab4897e86ca0e4bf0d9760d628ae0a"
geojson-vt@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/geojson-vt/-/geojson-vt-3.1.0.tgz#37b63d9ab7fafc9861dacc9aef20022df135074a"

get-caller-file@^1.0.1:
version "1.0.2"
Expand Down

0 comments on commit 1390662

Please sign in to comment.