Search code examples
google-mapsgwtdirections

Implementing "Get directions" in a gwt application


I need to implement directions using Google maps inside my GWT web application. Currently I'm using maps API v2 library.

I have several issues I have not been able to solve yet:

  1. Include Get Directions panel (similar to the Google maps one)
  2. Get list of streets names from the request.

PS How to implement mouse wheel zoom control?


Solution

  • I found out how to easily implement zoom functionality:

    final MapWidget map = new MapWidget(startLatLng, 12);
    map.setSize("100%", "100%");
    
    MapUIOptions options = map.getDefaultUI();
    options.setScrollwheel(true);
    map.setUI(options);
    

    For more info check out maps demo. You can checkout project code and test it in eclipse!

    I'm still searching for solution to other problems.