Topic: 3D OnlineMapsDrawingLine Help

Hello,

I want drawing 3D Line with OnlineMapsDrawingLine but OnlineMapsDrawingLine is working with only Lat and Lon. It hasn't Altitude properties each point.

My points have Lat, Lon and Altitude. (List<Vector3>)

I need help this topic.


Best regards,

Re: 3D OnlineMapsDrawingLine Help

Hello.

Drawing API does not support altitude.
Use Line Renderer instead.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

3 (edited by Gressx 2021-05-03 12:54:56)

Re: 3D OnlineMapsDrawingLine Help

Hello,

Line Renderer doesn't support map zoom and drag etc.

Re: 3D OnlineMapsDrawingLine Help

Use OnlineMapsControlBaseDynamicMesh.GetWorldPositionWithElevation to convert coordinates to Unity World Position and create a LineRenderer with your points.
https://infinity-code.com/doxygen/onlin … 953048d3d6
Subscribe to OnlineMaps.OnChangePosition and OnlineMaps.OnChangeZoom and when these events are called update the points in your LineRenderer.
https://infinity-code.com/doxygen/onlin … 37bdd7bfa1

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.