Select to view content in your preferred language

Javafx SketchEditor TouchScreen Issue

574
1
10-26-2022 02:13 AM
rod182211
Emerging Contributor

Hi I am hoping this is a newbie issue however I am having issues with SketchEditor working on my touch screen. Using the mouse works fine as per the attached video. I can see when I call the method (example at bottom) via touch the editor is started however the MapView does not recognize the interaction. All other aspects within the application work fine via touch ie the Mil Symbols etc. What newbie mistake am I making.

/**
* Clear selection of any graphic in the graphics overlay and start a new
* rectangle sketch.
*/
@FXML
private void handleRectangleButtonClicked() {
graphicsOverlay.clearSelection();
sketchEditor.start(SketchCreationMode.RECTANGLE);

}

Tags (1)
1 Reply
rod182211
Emerging Contributor

Other things 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);

});

}
});

 

The map becomes unresponsive.  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.

0 Kudos