Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 697 Bytes

geojson.md

File metadata and controls

36 lines (28 loc) · 697 Bytes

<Geojson /> Component API

Props

Prop Type Default Note
geojson Geojson description of object.

Example

import React from 'react';
import MapView, {Geojson} from 'react-native-maps';

const myPlace = {
  type: 'FeatureCollection',
  features: [
    {
      type: 'Feature',
      properties: {},
      geometry: {
        type: 'Point',
        coordinates: [64.165329, 48.844287],
      }
    }
  ]
};

const Map = props => (
  <MapView>
    <Geojson geojson={myPlace} />
  </MapView>
);