Pregunta

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?

¿Fue útil?

Solución 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.

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top