Hi, I am evaluating the WebMap component and so far have located two places and add markers for them. Now I want to "draw" or make the route between both as google maps does.
I am using waypoints ( seen in demo ) but cant figure out what parameters should have or how to invoke them .
You can use the overload of WebGMaps.RenderDirections() that has the parameter to add the list of waypoints, which is a TStringList of addresses as waypoints between start and end address:
function RenderDirections(Origin, Destination: string;
I dont know how to overload that function, where must I define that ?
This is my code.. could you tell me if it is correct ?
WebGMapsGeocoding.Address := cDirEmpresa;
if WebGMapsGeocoding.LaunchGeocoding = erok then begin webmap.MapOptions.DefaultLatitude := WebGMapsGeocoding.ResultLatitude; webmap.MapOptions.DefaultLongitude := WebGMapsGeocoding.ResultLongitude;
We are not aware of any issues with the WebGMapsDirections demo. The only thing that is required to make the app function correctly is a valid API Key value assigned to TWebGMaps.APIKey.
If the problem persists, please provide an exact description of what is going wrong and of the error message you are seeing so I can further investigate this.