With a KML file – that has multiple Placemark tags to for an overall router – I would like to show the Google map widget with the route laid over. How do I do this?
The closest that I have come to is as follows. There is a RouteData field for the Google map widget, that I presume, takes input as an Infotable of one column – LocationField – of type, Location. I wrote a service that generated multiple location points (corresponding to a Placemark in a KML file) and fed it to the RouteData field. But, I couldn’t see any result. Is this the right way for this problem?
Make sure you set "Show Routes" property. :)
I tried the same thing and was having problem on the way I was adding the Location Property. It worked for me creating a basic service that alllowed be to pick a point in the map and add it to the property of a thing:
var newRow = new Object();
newRow.Location = InputLocation;
I then added a button to a mashup that ran this service everytime I clicked on it
I also modified the Google Maps Extension to read KML files, using as reference the link below: