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);
}
Other things I have tried with no success.
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);
}
});
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.