Topic: Drawing Polygon Center Position
is there anyway to get the center position of a Polygon drawing after it has been Redrawn on the tile?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Drawing Polygon Center Position
is there anyway to get the center position of a Polygon drawing after it has been Redrawn on the tile?
Hello.
OnlineMapsDrawingPoly.center
https://infinity-code.com/doxygen/onlin … 7034fd1800
I trieed it, but when I try to call it on Debug.Log() it won't even draw the polygon nor say what the center of the polygon is
polygon = new OnlineMapsDrawingPoly(markerPositions, warnaPoly, 1, new Color(1, 1, 1, 0.5f));
Debug.Log(polygon.center);
polygonDrawing.Add(polygon);
poly = OnlineMapsDrawingElementManager.AddItem(polygon);
poly.name = "marker1";
It also shows an error like this
InvalidCastException: Specified cast is not valid.
Just checked it out and yes there is a bug in the asset.
Thanks for reporting this.
Problem fixed.
Email me (support@infinity-code.com) and I'll send you a patch.
Infinity Code Forum → Online Maps Help → Drawing Polygon Center Position
Powered by PunBB, supported by Informer Technologies, Inc.