Does the method route() in the MapViewer (com.haulmont.charts.gui.components.map.MapViewer) works at all? Is there a sample?
The Manual says “For a more detailed information about the methods and parameters of map components, please refer to the corresponding JavaDocs.” Where are the JavaDocs?
Getting my way around some Vaadin demo I got to:
mapViewer.route(mapViewer.createDirectionsRequest(center_p,center_c, TravelMode.DRIVING), new DirectionsRequestCallback() {
Thank you, your code works.
Trying to pass Waypoints to the request.
How to initialize a List?
Previous experiments tell me to use the constructors (the create… methods) in MapViewer, for instance your code above does not seem to work with DirectionsRequest request = new DirectionsRequest();
I have a map.createDirectionsWaypoint() but how to create the List?
Discovered my mistake above. Directionsrequest() is an abstract method.
And the list is just List l = new ArrayList
Been learning Java for the past 3 months, on account of CUBA Platform.
Thanks