Topic: MAP Updates

Hello MVD.

How to add node or path on the existing polygons and lines or even edit the existing polygons and lines.. If ever, how to change the color of the lines and polygons. I hope MVD you can do a detailed example of it.

This questions refers to the Example with database.

Pls. help

Thanks MVD!

manixs

Re: MAP Updates

How to change route:

1. Create route

procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
var
    PolylineItem: TPolylineItem;
begin
    PolylineItem.Polyline.Path.Add(48.9, 2.26);
    PolylineItem.Polyline.Path.Add(48.8, 2.4);
    PolylineItem.Polyline.Path.Add(48.77, 2.5);
    Form1.Map1.CreateMapPolyline(PolylineItem.Polyline);
end;

2. Edit route

procedure Form1_Button4_OnClick (Sender: TObject; var Cancel: boolean);
var
    PolylineItem: TPolylineItem;
    PathItem: TPathItem;
begin
    // change first point of route 48.9, 2.26 to 50, 3 
    PolylineItem := Form1.Map1.Polylines[0];
    PathItem := PolylineItem.Polyline.Path[0];
    PathItem.Latitude := 50;
    PathItem.Longitude := 3;
    Form1.Map1.UpdateMapPolyline(PolylineItem.Polyline);
end;


colors for lines

    PolylineItem.Polyline.Color := clBlack;    //The color of the polyline.
    PolylineItem.Polyline.HoverColor := clRed; //The color of the polyline when hovered.
    PolylineItem.Polyline.Opacity := 50;       //The opacity of the polyline.

colors for polygons

    PolygonItem.Polygon.BackgroundOpacity := 50;    //The opacity of the polygon.
    PolygonItem.Polygon.BorderWidth := 2;           //The width of the polygon border in pixels.
    PolygonItem.Polygon.BackgroundColor := clBlack; //The color of the polygon.
    PolygonItem.Polygon.BorderColor := clRed;       //The border color of the polygon.
    PolygonItem.Polygon.BorderOpacity := 50;        //The border opacity of the polygon.
    PolygonItem.Polygon.HoverBackgroundColor := clGreen;  //The color of the polygon when hovered
    PolygonItem.Polygon.HoverBorderColor := clRed;  //The border color of the polygon when hovered
Dmitry.

Re: MAP Updates

Hello MVD

Sorry for being importunate about the map.  I cant really understand how to apply this codes in your sample with tablegrid and database. Pls. do a sample that we can edit the route and the polygons.

Thanks!

Ref: Google Maps database Polygons and Polylines

Re: MAP Updates

Please download latest beta version 4.5
https://www.dropbox.com/s/sunrl4ano9340 … a.zip?dl=0


And updated example:
http://myvisualdatabase.com/forum/misc. … download=1

Dmitry.

5 (edited by manixs2013 2018-05-29 03:29:28)

Re: MAP Updates

YESSSSSSSSSSSSSSSSSS!

Great MVD/Dmitry!   You can have your vacation here in the Philippines Sir!
Just inform me.

manixs

Note:  I hope if you can add a multiple routes and polygons in one record and also can delete node much better sir. or maybe undo.  This is a total GIS software..

Re: MAP Updates

manixs2013 wrote:

YESSSSSSSSSSSSSSSSSS!

Great MVD/Dmitry!   You can have your vacation here in the Philippines Sir!
Just inform me.

manixs

Note:  I hope if you can add a multiple routes and polygons in one record and also can delete node much better sir. or maybe undo.  This is a total GIS software..

Another example, for a multiple routes and polygons
http://myvisualdatabase.com/forum/misc. … download=1


Unfortunately the component currently is not support delete nodes.

Dmitry.

Re: MAP Updates

Thank you DriveSoft and Its fine. But anyway, I still found a bug when I plot the route or the polygon in the Asia Pacific or specifically in the Philippines.. Pls. look into it in your sample. 

This is so important into my project. I need it so much. pls.

manixs!

Re: MAP Updates

manixs2013 wrote:

Thank you DriveSoft and Its fine. But anyway, I still found a bug when I plot the route or the polygon in the Asia Pacific or specifically in the Philippines.. Pls. look into it in your sample. 

This is so important into my project. I need it so much. pls.

manixs!

As I already said, I made request to developer of this component to fix this bug, bug is found, now I wait release of new version.

Dmitry.