I'm working on a project which requires me to build a function to expand a polygon of long/lat in a distance of X miles to create a "border".
The technology i am using is JavaScript deskgl / nebula gl layers. And i am unsure whether javascript deskgl/nebula gl has the built in ability to perform these operations. If not, this leads me to question the maths behind this functionality.
As i am unfamiliar with long an lat on a 2d plane, nor whether the stack i am using can deal with this, how do i go about expanding an array of arrays (long, lat) by X number of miles.