Hello
I have this app that plots routes in a mapviewer acording to geopoints defined by the user.
For that I use Google DirectionsApi by the methods in com.haulmont.charts.gui.components.map.MapViewer like:
mapViewer.route(request, new DirectionsRequestCallback() {
@Override
public void onCallback(DirectionsResult result, DirectionsStatus status) {
pending_request = false;
if (status == DirectionsStatus.OK && result.getRoutes() != null
&& !result.getRoutes().isEmpty()) { ..........................}
For wich I have to thank Igor Korotkov.
The problem is that it works well only when just one browser client is active. As soon as the same screen is openend in another browser (myself or other user) the Callback method never gets fired again. Tomcat must be restarted to get it functioning again.
Why is that? How can it be solved?
If you are mostly interested in Google Maps Web Services (geocoding, places, directions) then I would even recommend using specialised libraries.
CUBA’s maps implementation revolves around visual map component, and, although it provides some implementations of Google Maps JavaScript API, the coverage of them is not great due to lack of users demand.
Hi Pedro @parmelim
I was also going to try CUBA for google map directions but now I understand it’s not possible for now! I came across your post and good that you have already implemented using Jalal client library. Would you mind sharing some thoughts and code snippets to implement directions and way points?
Thanks a lot.
Mortoza