5.1.13 • Published 4 years ago

@nteract/transform-geojson v5.1.13

Weekly downloads
1,555
License
BSD-3-Clause
Repository
github
Last release
4 years ago

@nteract/transform-geojson

This package contains a React component that renders GeoJSON data into interactive maps using Leaflet.

Installation

$ yarn add @nteract/transform-geojson
$ npm install --save @nteract/transform-geojson

Usage

The example below shows how we can use the transform to render two coordinates on a map with a pop-up.

import GeoJSONTransform from "@nteract/transform-geojson";

export default () => {
  return (
    <GeoJSONTransform
      data={{
        type: "FeatureCollection",
        features: [
          {
            type: "Feature",
            properties: {
              popupContent: "18th & California Light Rail Stop"
            },
            geometry: {
              type: "Point",
              coordinates: [-104.98999178409576, 39.74683938093904]
            }
          },
          {
            type: "Feature",
            properties: {
              popupContent: "20th & Welton Light Rail Stop"
            },
            geometry: {
              type: "Point",
              coordinates: [-104.98689115047453, 39.747924136466565]
            }
          }
        ]
      }}
      metadata={true}
    />
  );
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:transform-geojson label.

License

BSD-3-Clause

5.1.13

4 years ago

5.1.13-alpha.0

4 years ago

5.1.12

4 years ago

5.1.12-alpha.0

4 years ago

5.1.11-alpha.0

4 years ago

5.1.10-alpha.0

4 years ago

5.1.9-alpha.0

4 years ago

5.1.8

4 years ago

5.1.8-alpha.0

4 years ago

5.1.7-alpha.0

4 years ago

5.1.6-alpha.0

4 years ago

5.1.5

4 years ago

5.1.5-alpha.0

4 years ago

5.1.4-alpha.0

4 years ago

5.1.3-alpha.0

4 years ago

5.1.2

4 years ago

5.1.2-alpha.0

4 years ago

5.1.1-alpha.0

4 years ago

5.1.0

5 years ago

5.0.0

5 years ago

4.0.4-alpha.0

5 years ago

4.0.3-alpha.0

5 years ago

4.0.2-alpha.0

5 years ago

4.0.0-alpha.0

6 years ago

3.2.5

6 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago