Welcome to the LimeSurvey Community Forum

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

Cannot load the map(OpenStreetMap) after update

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 months 2 weeks ago #265395 by DenisChenu
Replied by DenisChenu on topic Cannot load the map(OpenStreetMap) after update
Oh,

Seems there are an issue here :

1. If value is set to empty : pin must disappear and Lat/Long must be set to empty
2. If value is still there : pin must appear and lat/Lo,ng myustg be there.

Here : don't know what happen : community.limesurvey.org/bug-tracker/

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.

Please Log in to join the conversation.

  • dqzhou
  • dqzhou's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 2 weeks ago #265419 by dqzhou
Hi Tony, 

I think I indeed use this code that cannot put the pin into the middle. I check your attached file, the pin cannot be pinned into the middle as shown in the picture.  

And when i change the window of browser randomly, it becomes what we are expected to, which put the pin in the middle which is our current location. 

Thank you for your time and consideration in advance!
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago - 10 months 1 week ago #265452 by Joffm
Hi,
sorry, I do not understand why there should be an initial pin.
Though you did not explain more about the use of this question I assume it is one of the annual "openbaare vervoer" surveys of TUE.
I remember a similar question of one of your fellow students some years ago.

Nevertheless:
If the respondent doesn't know his postcode you want to show a map with Eindhoven in the center, right?
And in my opinion there shouldn't be a marker; the marker symbolizes the answer, but there is no answer yet.
Now the respondent is to set a marker near his home address.

All is fine here with these settings:
zoom: 12
start position: 51.43758 5.47892


You see that I use a list(radio) question with the "other" option at the beginning
Of course the script had to be changed
from
 var mapCheckbox = $(':checkbox:last', thisQuestion);
to
var mapCheckbox = $(':radio:last', thisQuestion);

and in the css I changed to
Code:
<style type="text/css" data-author="Tony Partner">
    .custom-hidden {
        position: relative;
        left: -9999em;
    }
</style>

No idea why it works with "relative". I saw it in the webdevelopment tool.

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 10 months 1 week ago by Joffm.

Please Log in to join the conversation.

  • dqzhou
  • dqzhou's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #265453 by dqzhou
Hi Joffm,

Thank you for your reply. I think my problem is not about initial pin. Because when I type a name of city, like Tilburg, the pin are pinned in the Tilburg, but the area of this city is not in the middle of the map we can see, as shown in the picture. 

When I adjust the size of browser, it become what we are expected to have, as shown below. 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #265463 by Joffm
I do not see an issue.


You should send your lss export.

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • dqzhou
  • dqzhou's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 week ago #265473 by dqzhou
Hi Joffm,

I attached the lss. file. We are expected to show the map when people select "indicate it on the map". And one important thing is that my version after update is 6.5.13. What you mentioned similar map issues by my colleagues is solved in old version, which is smoothly.  Since our department update the version, this map issue is not solved successfully. 

And I find I cannot upload my video. The problem is described in previous messages. If it is not clear, please let me know.

Thank you in advance! 

File Attachment:

File Name: limesurvey...3972.lss
File Size:34 KB

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 week ago #265480 by Joffm
Again - with your survey - I do not see an issue (Always version 6.5.14)




Do there seems to be something on your side.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose