Simplifies the vector geometry based on zoom level and tolerance. If the geometry is simplified past it being valid, set the coordinates to an empty array.
input vector geometry
simplification tolerance
curent zoom
max zoom level
Simplifies the vector geometry based on zoom level and tolerance. If the geometry is simplified past it being valid, set the coordinates to an empty array.