Hi,
I'm working with JS API 4.xyz . My goal is to allow a user to insert coordinates of a point (for now) during editation by manually typing them in prepared inputs instead of using click in map to get the location.
So far I found that the template for the selected feature is in editor.viewModel.featureTemplatesViewModel. When desired template is selected in the editor the editor.viewModel.featureFormViewModel.feature is empty. After user clicks in the map location the editor.viewModel.featureFormViewModel.feature is existing with geometry from map click.
I'd like to intercept this action and instead of clicking in a map to use some kind of submit button to send geometry with user-defined coordinates. After sending I need to move to the 3rd stage of CreateFeaturesWorkflow in the same way regular click in map would.
Thank you for any idea!