react-native-geojson

0.1.1 • Public • Published

react-native-geojson

A fast way to add geojson to react-native-maps.

Install:

npm install react-native-geojson

Example:

import React from 'react';
import MapView from 'react-native-maps';
import Geojson from 'react-native-geojson';
 
const alcatraz = {
  type: 'FeatureCollection',
  features: [
    {
      type: 'Feature',
      properties: {},
      geometry: {
        type: 'Point',
        coordinates: [-122.42305755615234, 37.82687023785448],
      }
    }
  ]
};
 
const Map = props => (
  <MapView>
    <Geojson geojson={alcatraz} />
  </MapView>
);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    331
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    331
  • 0.1.0
    1

Package Sidebar

Install

npm i react-native-geojson

Weekly Downloads

332

Version

0.1.1

License

ISC

Last publish

Collaborators

  • frankrowe