setRotation method

Marker setRotation(
  1. num rotation
)

Sets the rotation property of the marker. @param {number} rotation=0 The rotation angle of the marker (clockwise, in degrees), relative to its respective {@link Marker#rotationAlignment} setting. @returns {Marker} this

Implementation

Marker setRotation(num rotation) =>
    Marker.fromJsObject(jsObject.setRotation(rotation));