Skip to content

Commit

Permalink
Use @mapbox/geojson-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Jul 30, 2018
1 parent e0c68ef commit 519c780
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 20 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.*/node_modules/htmltojsx/.*
.*/node_modules/documentation/.*
.*/node_modules/module-deps/.*
.*/node_modules/@mapbox/geojson-types/fixtures/.*
.*/test/unit/style-spec/fixture/invalidjson.input.json
.*/test/integration/render-tests/.*

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"node": ">=6.4.0"
},
"dependencies": {
"@mapbox/geojson-types": "^1.0.2",
"@mapbox/jsonlint-lines-primitives": "^2.0.2",
"@mapbox/mapbox-gl-supported": "^1.4.0",
"@mapbox/point-geometry": "^0.1.0",
Expand Down
3 changes: 1 addition & 2 deletions src/source/geojson_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import type Dispatcher from '../util/dispatcher';
import type Tile from './tile';
import type {Callback} from '../types/callback';
import type {PerformanceResourceTiming} from '../types/performance_resource_timing';
import type {GeoJSON} from '../types/geojson';
import type {Feature as GeoJSONFeature} from 'flow-geojson';
import type {GeoJSON, GeoJSONFeature} from '@mapbox/geojson-types';
import type {GeojsonSourceSpecification} from '../style-spec/types';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/style/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import type {Callback} from '../types/callback';
import type EvaluationParameters from './evaluation_parameters';
import type {Placement} from '../symbol/placement';
import type {Cancelable} from '../types/cancelable';
import type {GeoJSON} from '../types/geojson';
import type {GeoJSON} from '@mapbox/geojson-types';
import type {
LayerSpecification,
FilterSpecification,
Expand Down
16 changes: 0 additions & 16 deletions src/types/geojson.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/util/vectortile_to_geojson.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @flow
import type {GeoJSONGeometry} from '../types/geojson';
import type {GeoJSONGeometry} from '@mapbox/geojson-types';

class Feature {
type: 'Feature';
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
dependencies:
wgs84 "0.0.0"

"@mapbox/geojson-types@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@mapbox/geojson-types/-/geojson-types-1.0.2.tgz#9aecf642cb00eab1080a57c4f949a65b4a5846d6"

"@mapbox/jsonlint-lines-primitives@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234"
Expand Down

0 comments on commit 519c780

Please sign in to comment.