private void handleSearchAddressResult(Placemark mark) { mDisplay.getMapWidget().setCenter(mark.getPoint()); mDisplay.getMapWidget().setZoomLevel(15); final Marker m = new Marker(mark.getPoint()); m.addMarkerClickHandler( new MarkerClickHandler() { @Override public void onClick(MarkerClickEvent event) { mDisplay.getMapWidget().removeOverlay(m); } }); mDisplay.getMapWidget().addOverlay(m); }
public MainViewPresenter(Display display, DataServiceAsync ds) { mDisplay = display; mapWidget = display.getMapWidget(); mDataService = ds; mDataModel = mDisplay.getDataModel(); bind(); bindMap(ds); bindMenu(ds); }