I want to define a question that presents the respondent with a map that is based on information from the token table.
For example: from people we know here they have a machine. We want to show a map where we think that the machine is. And then ask them if this position is correct.
I hoped to do this with a short tect question, map display. But using Open Street Maps I cannot show a pin, based on known lat/long values from the token. Or can I?
Thanks in advance,
Tammo ter Hark
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Trying to add token attributes to default location also did not work.
See attached image: TOKEN:ATTRIBUTE_1 IS Latitude AND TOKEN:ATTRIBUTE_2 is Longitude in Token table. Of course I filled them with values that represent a position that is known.
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
thank you. I can have the right map centered around a predefined center, but I have not yet been able to place a marker and to prefill the default location from:
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
What I hoped to achieve is by setting the default position with token values, the map would be centered around the position I want. With a small javascript I hope to then place the marker. Using Google Maps this goed automatically, using Open Street Maps it does not...
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Just did a quick test on openstreetmap.org: Even there, no pin is shown, when you insert coordinates. So I guess this is rather an openstreetmap problem, then Limesurvey.
52 / 5 gives me Utrecht, correct?
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Yes, you are right about that: OSM does not place a marker. That is why we need a javascript to do that.
But firstly we need that the lat/long values are read from the token table into the default position field, so the maps centers around the position in that default field.
We have been able to fill the default position with lat long values, but not from token fields.
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl