I want to set a scale for MyLocation widget, so it would not zoom too much.
For JavaScript API, all I need to do was inserting scale:2400.
Syntax in the widget looks a little different from API Reference.
Please let me know which part is missing.
Thank you.
{
"locateButton": {
"geolocationOptions": {
"timeout": 15000
},
"highlightLocation": true,
"scale": 2400
}
}
Solved! Go to Solution.
Keisuke,
If this question is answered and no longer a question than please mark it as answered. You can do this by clicking the "Correct Answer" link with the little green star.
Keisuke,
This seems to be working perfectly for me:
{
"locateButton": {
"geolocationOptions": {
"timeout": 15000
},
"highlightLocation": true,
"scale": 48000
}
}
Yes, it works now.
I had to reboot my tablet once.
Thank you very much for checking.
Do you know why syntax is slightly different?
In API, there is no " " required.
Keisuke,
It is just a difference in how the API handles the json (directly in JavaScript code) and how the WAB has to handle it when processing the json file (basically text).
Keisuke,
If this question is answered and no longer a question than please mark it as answered. You can do this by clicking the "Correct Answer" link with the little green star.
Hey Robert, will you follow me so I can send you a PM on here? I had your email back in the Flex heyday, but it's no longer in my contacts. It's a WAB question, but I ran out of characters while trying to post it on here. Thanks