this.selectHandler = selectHandler;
}
private void addSelectEvent(Marker marker, final Position position) {
if (selectHandler != null) {
marker.getEvents().register("click", marker, new EventHandler() {
@Override
public void onHandle(EventObject eventObject) {
selectHandler.onSelected(position);
}
});
marker.getEvents().register("mouseover", marker, new EventHandler() {
@Override
public void onHandle(EventObject eventObject) {
RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.SE_RESIZE);
}
});
marker.getEvents().register("mouseout", marker, new EventHandler() {
@Override
public void onHandle(EventObject eventObject) {
RootPanel.get().getElement().getStyle().setCursor(Style.Cursor.AUTO);
}
});