Topic: Draw a route line on a 3D map?

Hi

I'm struggling to draw a sucessfull line that updates when zoom and pan, on a 3D map (camera position changed to 3D position).

I can draw a line with the FindDiretion example, but the line is not in the right position...

Anyone can help me?

Re: Draw a route line on a 3D map?

Hello.

There are two common causes:
1. You have mixed the latitude and longitude.
If you use Vector2: X is the longitude, Y is the latitude.
If you use float or double: first longitude, then latitude.
2. You use Tileset Width / Height (Pixels) not equal to 256 * N.
Solution: use Tileset Width / Height (Pixels) equal to 256 * N.

If the problem persists, attach a screenshot of Online Maps, Online Maps Tileset Control and your script.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Draw a route line on a 3D map?

Hi, i've forgotten the password as geral, and tried to renew the password, but when rying to login with the new pass, it says it's incorrect, so i created another user.....

Anyways, thanks for the reply,

I've runned the code from the atlas of examples, Dotted Line.cs, and even that doesnt show apropriated, the attached image ilustrates.

I'm just trying to use the steps from the GoogleMapsDirections API of Online Maps, the ones that create a List of Vectors2 (example from FindDirections.cs of Atlas) and display a route line with those vectors, in the tiled map.The thing is I have the camera tilted for a 3D aspect of the map, maybe that's the problem? I don't know...

Any help?

Post's attachments

Attachment icon Capturar.PNG 561.12 kb, 238 downloads since 2018-01-06 

Re: Draw a route line on a 3D map?

By your explanation, it's impossible to understand what's wrong with FindDirections.
Try to explain in more detail how you do this, and what does not work.

I made a small video to show how it works in my case:
https://www.dropbox.com/s/0maqq1uypauqp … 1.mp4?dl=0

In your screenshot, I see that the problem is in the shader.
Just use another shader (for example Standard, Rendering - Fade) and the problem will gone.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.