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

Topic: Draw line

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.


Post's attachments

Attachment icon Untitled-1.jpg 85.47 kb, 7 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, 7 downloads since 2019-01-21 

Re: Draw line


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.

Do not know the best way to thank the developer? Rate the asset in Asset Store!