setMarker3dModel abstract method

  1. @Deprecated("Will be removed in v4.27.0. Please use the `setMarker3dModelWithRenderSizeUnit` instead.")
void setMarker3dModel(
  1. MapMarker3DModel model,
  2. double scale,
  3. LocationIndicatorMarkerType type
)

Sets the MapMarker3DModel asset to be displayed as location indicator for a specified type.

The 3D model should be oriented with y axis up and thus standing on the x/z plane where the z axis is the depth. The direction in which the location indicator is pointing is the positive z axis. Please note that only MapMarker3DModel created from *.obj files are supported. Models created from Mesh will be ignored.

  • model The MapMarker3DModel object to be displayed for the specified type. Only models created from obj files are supported. Those created from mesh will be ignored.

  • scale The scaling which will be applied to the marker model. As the size of the location marker should be aligned on devices with different resolutions the scale factor is applied relative to the ppi value and thus differs from the scale which is passed to MapMarker3D objects. Meter is used for the unit of the map marker 3d model coordinate system. For historical reason, the scale factor is internally devided by 6. To display a unit qube of 1x1x1 meter as is, please use a scale value of 6.0.

  • type The type of location marker for which the marker 3d model should be replaced.

Implementation

@Deprecated("Will be removed in v4.27.0. Please use the `setMarker3dModelWithRenderSizeUnit` instead.")

void setMarker3dModel(MapMarker3DModel model, double scale, LocationIndicatorMarkerType type);