Hi,
Please let me know how to add by code the first marker - the beginning of the route using RouteCalculator. Similar operation to what happens when we click the map in your RouteCalculator demo for the first time.
Best regards
Hi,
Please let me know how to add by code the first marker - the beginning of the route using RouteCalculator. Similar operation to what happens when we click the map in your RouteCalculator demo for the first time.
Best regards
You can add it with the following code:
var
m: TTMSFNCMapsMarker;
begin
m := TMSFNCMaps1.AddMarker(TMSFNCMaps1.Options.DefaultLatitude, TMSFNCMaps1.Options.DefaultLongitude);
m.IconURL := DEFAULTSTARTMARKER;
m.DataString := ROUTECALCULATORSTARTMARKER;
ok. start marker work but viapoint not work. I sent ticket by e-mail
Hi,
The behavior you expect is not supported. You cannot combine programmatic route plotting with interaction without clearing the existing waypoints first. you can use TMSFNCMaps1.RouteCalculatorPlotRoute to plot the route once it is calculated.