Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Grab Device Location and set Map to zoom to that Location

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196363 by Joffm
I could not import your export in 3.22 LTS.

So I only could open the lss in a text editor.

I imported all 3 questions into a blank project as a test

And you changed the structure. Now all three question are in one group.
So it is a typical GIGO issue (Garbage In - Garbage Out).
There is a reason that there are two groups.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 2 weeks ago #196403 by KhemrajC
Hi,

You spotted right, I messed it by all having all in a single group.

Any reason it should it two separate groups?

Should it have in a single group, where would the change happened in the coding?

You are really of great help.

Thanks a lot.

Best regards
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 weeks ago #196407 by Joffm
The reason is,
You have seen in the javascript that it is fired when the page is loaded.
$(document).on('ready pjax:scriptcomplete',function(){

So how do want the pipe the coordinates into the map by EM if this is already on the screen?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 2 weeks ago #196411 by KhemrajC
Hi,

So it all relies on the loading of javascript at runtime.

And Expression Script is again fired when another group is invoked.

Thanks for the great help.

Best regards
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 6 days ago - 4 years 6 days ago #196873 by KhemrajC
Hi,

I slightly adjusted your provided code to make it work with Google Map.

Its working on the PC but on an Android Mobile, I can't do anything with map, neither zooming, nor refining the cursor position. And obviously nothing is saved into the database.

Please assist.

Thanks and regards
Last edit: 4 years 6 days ago by KhemrajC.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose