1 (edited by flag74 2019-01-21 14:49:55)

Topic: Draw line

Hi,
Im unable to make drawline works.
I'm using Tilesets, TilesetControl(Deactivated)
Points are Vector2[] with Longitude/Latitude(Coordinates are 100% correct)
I don't have any marker.
ZoomLevel 16, LineWidth 5
If I debug the component I see that it has loaded all my line points (approx 1500) but they are not rendered at all.

OnlineMaps.instance.AddDrawingElement(new OnlineMapsDrawingLine(pathLineDrawPositions, Color.blue, 5f));

(Markers work correctly since I can draw markers to my positions)

Any suggestion?
I cant use Unity LineRenderer cause I need line to be cropped inside the map UI mask doesn't work. Also I would be forced to redraw it every update as the map moves.

thx

Post's attachments

Attachment icon Untitled-1.jpg 85.47 kb, 54 downloads since 2019-01-21 

2 (edited by flag74 2019-01-21 14:53:00)

Re: Draw line

This is the OnlineMaps component

Post's attachments

Attachment icon Untitled-2.jpg 59.25 kb, 56 downloads since 2019-01-21 

Re: Draw line

Hello.

Online Maps and Control (in this case Tileset Control) are required components and should be enabled.
So just enable Tileset Control.

Kind Regards,
Infinity Code Team.

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