- Posts: 12889
- Thank you received: 3965
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
- Offline
- LimeSurvey Community Team
Less
More
4 years 2 weeks ago #196363
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Grab Device Location and set Map to zoom to that Location
I could not import your export in 3.22 LTS.
So I only could open the lss in a text editor.
So it is a typical GIGO issue (Garbage In - Garbage Out).
There is a reason that there are two groups.
Joffm
So I only could open the lss in a text editor.
And you changed the structure. Now all three question are in one group.I imported all 3 questions into a blank project as a test
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 0
4 years 2 weeks ago #196403
by KhemrajC
Replied by KhemrajC on topic Grab Device Location and set Map to zoom to that Location
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12889
- Thank you received: 3965
4 years 2 weeks ago #196407
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Grab Device Location and set Map to zoom to that Location
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
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 0
4 years 2 weeks ago #196411
by KhemrajC
Replied by KhemrajC on topic Grab Device Location and set Map to zoom to that Location
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
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 0
4 years 6 days ago - 4 years 6 days ago #196873
by KhemrajC
Replied by KhemrajC on topic Grab Device Location and set Map to zoom to that Location
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
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.