freedowsRoO Posted June 24, 2020 Posted June 24, 2020 Hello guys! How you doing? Is there a way to drawing vectors on unimap in runtime? I need that when i click on the map the vector will drawing point by point. I saw the demo and tried but no sucess.... Version1.90.1530 Quote
Hayri ASLAN Posted June 24, 2020 Posted June 24, 2020 Hi, In the demo, we explained clearly how to create a vector. You will use onMapClick event to create a vector 1 Quote
freedowsRoO Posted June 27, 2020 Author Posted June 27, 2020 On 6/24/2020 at 7:59 AM, Hayri ASLAN said: Hi, In the demo, we explained clearly how to create a vector. You will use onMapClick event to create a vector Sorry ASLAN i saw the demo but it's still not clear how to draw the vector in runtime. I tried to use the following code to draw the vector but it's add only one point at time in my map, it's not connect the points and draw the vector. with UniMap1.Vectors.Add do begin AddPoint(lat, lng); VectorType:=mvPolygon; with Options do begin color:= UniColorButton1.Color; fillColor:= UniColorButton2.Color; weight:= Trunc(UniNumberEdit5.Value); opacity:= UniNumberEdit6.Value; fillOpacity:= UniNumberEdit7.Value; radius:= Trunc(UniNumberEdit8.Value); end; AddToMap; FitBounds; end; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.