use of org.geosdi.geoplatform.gui.client.action.menu.GeocodingMenuAction in project geo-platform by geosdi.
the class Geocoding method addReverseGeocodingAction.
private void addReverseGeocodingAction() {
MenuActionRegistar menuRegistar = BasicGinInjector.MainInjector.getInstance().getMenuActionRegistar();
menuRegistar.put("geocoding", new MenuActionCreator() {
@Override
public MenuAction createAction() {
return new GeocodingMenuAction();
}
});
ToolbarActionRegistar toolbarRegistar = BasicGinInjector.MainInjector.getInstance().getToolbarActionRegistar();
toolbarRegistar.put("googleReverseGeocoding", new ToolbarActionCreator() {
@Override
public ToolbarAction createActionTool(GeoPlatformMap mapWidget) {
return new GoogleReverseGeocodingAction(mapWidget);
}
});
toolbarRegistar.put("yahooReverseGeocoding", new ToolbarActionCreator() {
@Override
public ToolbarAction createActionTool(GeoPlatformMap mapWidget) {
return new YahooReverseGeocodingAction(mapWidget);
}
});
}
Aggregations