/** {@inheritDoc } */ @Override public boolean uninstall(final FXMap component) { component.removeEventHandler(MouseEvent.ANY, mouseInputListener); component.removeEventHandler(ScrollEvent.ANY, mouseInputListener); map.removeDecoration(layer); map.removeDecoration(deco); super.uninstall(component); return true; }
/** {@inheritDoc } */ @Override public void install(final FXMap component) { super.install(component); component.addEventHandler(MouseEvent.ANY, mouseInputListener); component.addEventHandler(ScrollEvent.ANY, mouseInputListener); map.setCursor(Cursor.CROSSHAIR); map.addDecoration(layer); map.addDecoration(deco); }