Solved

Show User Location on MAP

  • 7 March 2024
  • 3 replies
  • 86 views

Userlevel 5
Badge +20

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": [[{"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?

icon

Best answer by Mark Jongeling 25 March 2024, 17:19

View original

3 replies

Userlevel 7
Badge +23

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:

Userlevel 5
Badge +8

Hi @Harm Horstman,

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

Userlevel 5
Badge +20

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.

 

Reply