-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizing the embedded map #170
Comments
Are these directions missing something? . Upload the text file.
|
Hi @mgoebel10, sorry for a late reply. As you referred to, I think Qualtrics has updated its policy or the handling process, so it seems they no longer (easily) accept external .js files, as I have reviewed it a while ago. But for your main goal to customize the default view, you can just use the CDN approach and then use the last example in the readme with the optional parameters. Qualtrics.SurveyEngine.addOnReady(function () {
mapRender(apiKeyGoogleMap, document.getElementById(this.questionId), {
location: {
lat: 50,
lng: -100,
},
zoom: 12, // Optional
});
}); |
Hey @keita-makino, again, thanks for developing this tool! |
@keita-makino Following up on this. The "zoom" attribute doesn't seem to be working properly. Otherwise, thank you for this great tool! |
I agree: I cannot get the zoom feature to work either. Thank you! |
Hi! I used an older version of your code to embed a map (in 2021 and 22), but struggling with the latest version. I think part of the issue might be that Qualtrics has also updated? Anyway, I'm trying to customize where the map default view is (ideally I'd like it to show the state of Montana). The directions are a little different than they were before (e.g. do you still have to convert the bundle file?). I'm not at all familiar with Javascript (beyond working with the code you provided). Thanks!
The text was updated successfully, but these errors were encountered: