is-sea icon indicating copy to clipboard operation
is-sea copied to clipboard

Support for buffer zone (ie. territorial waters = 12nm)

Open leeprevost opened this issue 2 years ago • 2 comments

@simonepri - this was my attempt to add buffer zone logic to your is-sea module. I updated index.js and package.json but did not update readme, demos, or test. Was not sure how to do that as I'm more comfortable with python. I thought adding the @turf/buffer module would be lighter weight than trying to import another map which has buffers drawn and would be especially 'lite' for raspi or embedded use aboard a vessel. If you can guide me on whatelse needs added, I'll surely do my best to contribute.

leeprevost avatar Jul 30 '22 14:07 leeprevost

I need to memoize/cache the buffered map to avoid recomputing it on each call.

leeprevost avatar Aug 03 '22 13:08 leeprevost

Rather than buffer zone which requires much memory and recompute, I just refactored using @geo-maps/countries-maritime-10m boundaries.

leeprevost avatar Aug 08 '22 00:08 leeprevost