Skip to main content

We are trying to create a screen where the user can get their current location and want to show this directly for verification using the maps component.

From here we want to start location-related tasks, such as field inspections, observations, etc.

For the test, this view is used 

​SELECT tsf_user = dbo.tsf_user()
     , device_gps_location = NULL
     , maps_coords = '{"CoordSets": or{"Lon":"4.7635140", "Lat":"52.4253230"}]]}'
     , map_marker = 'BLUE'


It looks like below:
 

 

A marker on the map should move to current location after leaving the GPS Location field.

I know how to control the maps component, but I can't get it to work.

If possible the current location of the user is shown immediately when the screen is opened and the users allows the application to use the location.

 

Any ideas?

Hey Harm,

We would love to help out. Can you share the configuration of the Maps similar to this screenshot?:

Maps configuration


Edit: couple of Docs links that may help out:


Hi @Harm Horstman,

Can you please respond to Mark his question? Thanks in advance!


Jeroen,

We have found a solution based on a task with location control that stores the coordinates in a user record. The same task starts a process flow that opens a view with a map component.