Googlemaps Extension works by address but not by Lat/Long

0
0

Hello All.

I have been trying to show a route on a Google Map but when I specify the route using two LatLng objects the route does not show on the map. I don’t get any exception, nothing seems to happen.

I have used the Google Maps demo in the WiseJ examples to test this on. When I run the following:

googleMap1.AddRoute(“22 Foresters Drive London UK”, “13 Halford Road, London, UK”, TravelMode.Driving);

I see the route marked on the map, but when I do something like:

var FromLatLong = new LatLng
{
Lat = 51.580104,
Lng = -0.002977
};
var ToLatLong = new LatLng
{
Lat = 51.600457,
Lng = 0.013739
};
googleMap1.AddRoute(FromLatLong, ToLatLong, TravelMode.Driving);

I don’t see anything ?

How can I show a route based on two Lat/Longs ?

(I need to use LatLong because I am getting some GPS points from a driver and want to show a route from their current location).

Thank you

Andrew

  • You must to post comments
0
0

Hi Andrew,

We have identified an issue similar to this one and fixed it.

The fix will be released with the new 3.2.4 release of Wisej.NET.

Best,
Alaa

  • Andrew Pearce
    Thank you Alaa. I will install 3.2.4 as soon as it is available.
  • Andrew Pearce
    I have upgraded and the route is showing now. Thank you.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.