Steve Bennett

Results 224 comments of Steve Bennett

Whoa, there's a right-click menu? :)

> does mapboxgl.NavigationControl refer to the class/ or an instance of it? The class. If I had an instance of it, I wouldn't need this function. >How would this work...

Yeah, that's a fair point. Btw it should be `return bboxClip(f, bbox)` :p

Actually, FWIW, it should be: ``` const out = turf.featureCollection(fc.features.map(function (f){ return turf.bboxClip(f, bbox) })); ``` ``` const out = turf.featureMap(fc, function (f){ return turf.bboxClip(f, bbox) })); ``` So the...

Yeah, I think you're right. Maybe a different approach to this kind of stuff might be having turf add a `.map()` function to an `FeatureCollection` it returns from anything that...

Weirdly I'm hitting this again in a completely different app, Vue based. It happens when the user is changing stuff while the map is still repainting from the last change...

Oh, a note: it would be nice to have the type signature capture this logic: - if you pass a Point, LineString or Polygon, you get the same thing back,...

>[3.1](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1) suggests that is actually ok? "GeoJSON processors MAY interpret Geometry objects with empty "coordinates" arrays as null objects." Yeah, but since Turf is generating the data, that would essentially...

Pinging @mourner as the original author in case he has any opinions.

>I suppose I'm looking at it from the POV of a user who wants to know "was there anything returned in the clip area?" It's a pity we don't also...