Skip to content

Commit

Permalink
Merge 8650743 into b4cc95d
Browse files Browse the repository at this point in the history
  • Loading branch information
GoCardsCai committed Jun 29, 2020
2 parents b4cc95d + 8650743 commit 1ee203e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -65,21 +65,21 @@ yarn add @deck.gl/layers
[EditableGeoJsonLayer](/docs/api-reference/layers/editable-geojson-layer.md) is implemented as a [deck.gl](https://deck.gl) layer. It provides the ability to view and edit multiple types of geometry formatted as [GeoJSON](https://tools.ietf.org/html/rfc7946) (an open standard format for geometry) including polygons, lines, and points.

```js
import DeckGL from 'deck.gl';
import DeckGL from '@deck.gl/react';
import { EditableGeoJsonLayer, DrawPolygonMode } from 'nebula.gl';

const myFeatureCollection = {
type: 'FeatureCollection',
features: [
/* insert features here */
]
],
};

const selectedFeatureIndexes = [];

class App extends React.Component {
state = {
data: myFeatureCollection
data: myFeatureCollection,
};

render() {
Expand All @@ -93,7 +93,7 @@ class App extends React.Component {
this.setState({
data: updatedData,
});
}
},
});

return <DeckGL {...this.props.viewport} layers={[layer]} />;
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/layers/editable-geojson-layer.md
Expand Up @@ -3,7 +3,7 @@
The Editable GeoJSON layer accepts a [GeoJSON](http://geojson.org) `FeatureCollection` and renders the features as editable polygons, lines, and points.

```js
import DeckGL from 'deck.gl';
import DeckGL from '@deck.gl/react';
import { EditableGeoJsonLayer, DrawPolygonMode } from 'nebula.gl';

const myFeatureCollection = {
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/layers/mesh-layer.md
Expand Up @@ -3,7 +3,7 @@
The Mesh Layer renders a number of arbitrary geometries. For example, a fleet of 3d cars each with a position and an orientation over the map.

```js
import DeckGL from 'deck.gl';
import DeckGL from '@deck.gl/react';
import { MeshLayer } from '@deck.gl/experimental-layers';
import { CubeGeometry } from 'luma.gl';

Expand Down
2 changes: 1 addition & 1 deletion examples/codesandbox/examples.old.txt
@@ -1,7 +1,7 @@
import window from 'global/window';
import * as React from 'react';
import MapGL from 'react-map-gl';
import DeckGL from 'deck.gl';
import DeckGL from '@deck.gl/react';
import { featureCollection, point } from '@turf/helpers';

import { EditableGeoJsonLayer } from 'nebula.gl';
Expand Down

0 comments on commit 1ee203e

Please sign in to comment.