Topic: Is possible to draw more precision line in map?
hello,
I used " draw API" for my map and I found the script was written by float.
Is possible to make line more precision in my map?
How can I change in double?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Is possible to draw more precision line in map?
hello,
I used " draw API" for my map and I found the script was written by float.
Is possible to make line more precision in my map?
How can I change in double?
Hello.
We added the ability to use Drawing API in double precision.
Please update Online Maps through the built-in update to the latest beta version.
Now you can use: Vector2, float, double.
If values float or double, the values should go in pairs(longitude, latitude).
Examples:
double[] line =
{
3, 3, // lng, lat
5, 3,
4, 4,
9.3, 6.5
};
api.AddDrawingElement(new OnlineMapsDrawingLine(line, Color.green, 5));or
float[] poly =
{
0, 0, // lng, lat
1, 0,
2, 2,
0, 1
};
api.AddDrawingElement(new OnlineMapsDrawingPoly(poly, Color.red, 1, new Color(1, 1, 1, 0.5f)));or (old way)
List<Vector2> line = new List<Vector2>
{
new Vector2(3, 3),
new Vector2(5, 3),
new Vector2(4, 4),
new Vector2(9.3f, 6.5f)
};
api.AddDrawingElement(new OnlineMapsDrawingLine(line, Color.green, 5));Infinity Code Forum → Online Maps Help → Is possible to draw more precision line in map?
Powered by PunBB, supported by Informer Technologies, Inc.