setPolygonDistance

Sets the distance, in meters, for which polygons are displayed.

If ANY part of the polygon is over this distance none of the polygon renders.

Parameters:

  • polygonDistance(number): The distance, in meters.

Code Sample