React-leaflet: Load geojson data

Created on 15 Jun 2016  路  2Comments  路  Source: PaulLeCam/react-leaflet

Please make sure to check the following boxes before submitting an issue. Thanks!

  • [x ] Check that all peer dependencies are installed: React, ReactDOM and Leaflet.
  • [x ] Check that you are using a supported version of React (v0.14 or v15).
  • [x ] Check that you are using a supported version of Leaflet (v.0.7)
  • [x ] Make sure you have followed the quick start guide for Leaflet.
  • [x ] Make sure you have fully read the documentation and that you understand the technical considerations.

Hello,

I'm trying to load GeoJson data with appropriate marked (geojson tag with geojson object in data options).
I think the syntax is good because reactjs doesn't return error. But nothing is display on map.
I tried in an other project with leaflet only, and the data appears well.

Is this feature has been tested ? Is it possible to have an example ?

Thank you

Most helpful comment

Here is a jsfiddle exmaple of using geojson.

All 2 comments

Here is a jsfiddle exmaple of using geojson.

Thank you very much !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shadowman4205 picture Shadowman4205  路  4Comments

josdejong picture josdejong  路  4Comments

ekatzenstein picture ekatzenstein  路  4Comments

treydavis picture treydavis  路  4Comments

thenickcox picture thenickcox  路  4Comments