freedowsRoO Posted June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
freedowsRoO Posted June 24, 2020 Author Share Posted June 24, 2020 thanks Link to comment Share on other sites More sharing options...
freedowsRoO Posted June 27, 2020 Author Share 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; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now