What is currently the best way to add a GeoJson polygon to the map?
I am aware the currently there is not API available to access data. I am looking for what are the other ways to add geoJSON to google map using this library. I have looked into previous raised issues but no luck
Parse your geoJSON polygons into coordinates a Google Map polygon can render
@milieu what about If I want add geojson not geojson polygon. any geojson. what could be the solution in that case. any idea implementation? without forking and modifying existing library and then use.
Oh... just properly looked at http://geojson.org/
Uh, access the geojson's geometry key and grab the coordinates and pass it to the path attribute of Google Map's Polygons?
Thnks man @milieu. anyway I got work around. I tried to load geoJSON on data layer and then attach that data layer to map.
@milieu Do you have any idea about how to export(get) geoJSON from map. It should able to get updated geoJSON i.e. added markers by users to map should be there in the definition.
?? From map?
Um, without seeing a gist I really can't say how you can do it... it sounds like you want to register something that on marker creation whatever geoJSON you're tracking in state gets updated.
finally, I was able to add markers to map and able to export updated geoJson from map. for that I relied on DataLayer since react-google-maps dont have support API to access map.data yet.
I think this issue can be closed
Yes, it can be closed now.
The power is yours (and probably the maintainer's...)