flot – https://archive.gaiaresources.com.au Environmental Technology Consultants Thu, 29 Feb 2024 03:47:38 +0000 en-AU hourly 1 https://wordpress.org/?v=4.9.1 Tree Mapping Revisited https://archive.gaiaresources.com.au/tree-mapping-revisited/ Wed, 10 Jun 2015 00:41:48 +0000 http://archive.gaiaresources.com.au/?p=2670 A few years ago we did a small internal project looking at the street trees in the area surrounding our office.  The data that was collected was then presented using traditional cartographic techniques to produce a fairly standard looking pdf map. No problem with that, we still produce these type of maps for client regularly.... Continue reading →

The post Tree Mapping Revisited appeared first on Gaia Resources.

]]>
A few years ago we did a small internal project looking at the street trees in the area surrounding our office.  The data that was collected was then presented using traditional cartographic techniques to produce a fairly standard looking pdf map.

1SITETYPENo problem with that, we still produce these type of maps for client regularly. What I really wanted to do though is to explore adding some interactivity to the original data using modern webmapping libraries. I have been looking for an excuse to play with Turf, so inspired by a MapBox blog post from earlier this year I built a simple Leaflet map to allow users to find the street trees closest to them and well as explore each tree data point and the overall species distribution.

The data didn’t really need any processing other than a quick conversion into json ready to drop into Leaflet. A lot of the interaction is just vanilla javascript using Leaflet, I did however use Turf’s ‘within’ and ‘nearest’ functions to build the buffer interactivity as well as experimenting with Flot for the charts.

The code is on Github and there is a demo here.

street_treesContact us through Facebook, Twitter or LinkedIn, or leave a comment below.

Andrew

The post Tree Mapping Revisited appeared first on Gaia Resources.

]]>