Closed paulsUsername closed 4 years ago
Resolved this by using a mapbox layer designed to be blank, the using ImageMagick to remove the background color.
For anyone that is looking to do the same:
Install ImageMagick (npm install imagemagick)
run "convert file-name.png -channel rgba -alpha set -fuzz 85% -fill none -opaque "#ffffff" file-name.png" (this assumes that yourpolyline is white. Otherwise adjust the color to the color of your polyline)
Is it possible to have a blank background and just return the drawn polyline/markers?