Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

soil map #15

Open
gigster99 opened this issue Apr 27, 2015 · 2 comments
Open

soil map #15

gigster99 opened this issue Apr 27, 2015 · 2 comments

Comments

@gigster99
Copy link

May I ask for your help on:
http://bl.ocks.org/zachcp/4340234

How should we update your JS so that the chemical data in the JSON file is revealed on map location mouseover?

If that is possible, how should we format the chemical data as a 2 column table?

Also what is the unit-of-measure for the data? For example is it grams per kilogram?

Thank you for your help here.
/gg

@zachcp
Copy link
Owner

zachcp commented Apr 27, 2015

Hi @gigster99,

I would recommend looking into the Leaflet library for the sorts of things you are asking. In the block you are referencing I had aped Mike Bostock's block on how to use Google Maps with d3.js, however, there is much more documentation for using leaflet - check out this post, or this one to get started. I am sure there would be a way to do something similar with the Google Maps API but I am unfamiliar with it. Two projects that make working with leaflet easier are Folium (python) and Leaflet (R).

All of the mineral data is in mg/kg.

hope that helps,
zach cp

@gigster99
Copy link
Author

Very helpful - thank you. Also good to know the matrix value.

/g

From: zachcp [mailto:notifications@github.com]
Sent: Monday, April 27, 2015 2:27 PM
To: zachcp/quickD3map
Cc: gig graham
Subject: Re: [quickD3map] soil map (#15)

Hi @gigster99 https://github.com/gigster99 ,

I would recommend looking into the Leaflet http://leafletjs.com/ library for the sorts of things you are asking. In the block you are referencing I had aped Mike Bostock's block on how to use Google Maps with d3.js, however, there is much more documentation for using leaflet - check out this post http://www.kgryte.com/blog/leaflet-visualization-places-traveled/ , or this one http://bost.ocks.org/mike/leaflet/ to get started. I am sure there would be a way to do something similar with the Google Maps API but I am unfamiliar with it. Two projects that make working with leaflet easier are Folium https://github.com/python-visualization/folium (python) and Leaflet https://github.com/rstudio/leaflet (R).

All of the mineral data is in mg/kg.

hope that helps,
zach cp


Reply to this email directly or view it on GitHub #15 (comment) . https://github.com/notifications/beacon/AB9THopyTFVe05A3lE764wDQ0_d1HxRjks5oDoUdgaJpZM4EJjlE.gif

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants