How to do your own routing on the WebGMaps component. I have addresses in the database. After loading using the WebGMaps1 method. MapPanTo (WebGMapsGeocoding1.ResultLatitude, WebGMapsGeocoding1.ResultLongitude) does not want to show up the path. WebGMapsGeocoding1 returns the correct result.
The user can not mark the route points himself.
How to solve the problem?
There are basically three approaches for showing routes in WebGMaps
1) Use WebGmaps.GetDirections() with the source & destination address or source & destination geo coordinates to fill the list of possible directions WebGmaps.Directions and then show the resulting path on the map.
This is shown in the WebGMapsDirectionDemo
2) Use WebGMaps.RenderDirections() to directly draw the best route from source to destination
3) Step by step calculating & adding routes. This is shown in the demo WebGMapsRoutingDemo
Can I make a route for 3, 4 or more points? Can I ask for an example in Delphi.
In the WebGMapsDirectionDemo you can see how Waypoints are used for this.
So, it doesn't work for Delphi2007! Wierd!