MapMarker3D.withScale constructor

MapMarker3D.withScale(
  1. GeoCoordinates at,
  2. MapMarker3DModel model,
  3. double scale
)

Creates an instance of a 3D marker with scale factor.

One unit of the 3D marker model will cover MapMarker3D.withScale.scale pixels. The size of the 3D marker remains constant on the screen.

The origin of the 3D model's local coordinate system is placed at the specified geographical coordinates.

Altitude component of the coordinates, if set, controls 3D marker's elevation above ground. If not set, the 3D marker is placed at ground level.

  • at The geographical coordinates where the 3D marker is placed corresponding to origin of the 3D model's local coordinate system.

  • model The 3D model used to render the 3D marker.

  • scale Scale factor to apply to the 3D model.

Implementation

factory MapMarker3D.withScale(GeoCoordinates at, MapMarker3DModel model, double scale) => $prototype.withScale(at, model, scale);