Hi, I am having issues with SketchEditor working on my touch screen. Using the mouse works fine. When using touch, I can see the editor is started however the MapView becomes unresponsive. All other aspects within the application work fine via touch ie the Mil Symbols etc. I followed the example as per the developers guide for Java. I am using 100.15.1 Openjdk17 and OpenJfx17
Example method:
@FXML
private void handleRectangleButtonClicked() {
graphicsOverlay.clearSelection();
sketchEditor.start(SketchCreationMode.RECTANGLE);
}
I have tried with no success.
- Removing the FXML action event and adding an OnAction to the button
pointButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
graphicsOverlay.clearSelection();
sketchEditor.stop(); //even added a stop to see if helps
sketchEditor.start(SketchCreationMode.POINT);
}
});
- add the following in case it was a Javafx thread issue:
pointButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Platform.runLater(() -> {
graphicsOverlay.clearSelection();
sketchEditor.stop(); //even added a stop to see if helps
sketchEditor.start(SketchCreationMode.POINT);
});
}
});
Any ideas or help as to how to resolve or even try welcome
In all cases using the mouse continued to work but not when using touch on my touch screen.
I apologies but I also posted this issue here Javafx SketchEditor TouchScreen Issue - Esri Community