Question

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?

Was it helpful?

Solution 2

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.

OTHER TIPS

Here is the answer for your mouse wheel zoom question

Implement HasMouleWheelHandlers and its the API's like getX(), getY(), getScreenX(), getScreenY() and do your zoom operations

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top