Adding turf.isolines layer to leaflet map

I think I’m overlooking something very simple with my notebook. I’m trying to use the turf.isolines feature in a leaflet map.

https://beta.observablehq.com/@themapsmith/hello-turf

Is there any way to figure out what’s going wrong with my lines object?

I made this one with jsts: https://beta.observablehq.com/@rveciana/coastal-vignettes-with-jsts-d3js

Maybe is useful if you don’t mind changing the library

Here’s a quick demo of isolines in Turf:

https://beta.observablehq.com/@mbostock/turf-isolines

2 Likes

Awesome, thanks so much Mike! My mistake was trying to put the turf.js calls within the map = { } object.