setPolylineDistance

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

If ANY part of the polyline is over the set distance, then none of the polyline renders. As with setCustomMarkerDistance, you may set the distance to zero in order to not display any polylines. See the main polyline page for a definition of “polyline”.

Parameters:

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

Code Sample