문제

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?

도움이 되었습니까?

해결책 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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top