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.
A zoom of 0 (as long as maxzoom is not 0) is the default tolerance. Use this if you are not
applying a zoom mechanic to the data.
NOTE: Be sure to run buildSqDists on the geometry before calling this function
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.
A zoom of 0 (as long as maxzoom is not 0) is the default tolerance. Use this if you are not applying a zoom mechanic to the data.
NOTE: Be sure to run
buildSqDistson the geometry before calling this function