smashing: Several Widgets Not Rendered (?)
Hello,
After fresh install I’m unable to get display for a few widgets. Among those tested :
- IFrame (provided out of the box)
- dashing-map (additional widget)
- dashing-trafficmap (additional widget)
For them I do not get anything on screen, just background.
On the other hand all widgets from dashboards examples (sample and sampletv) are working fine…
I searched during hours and I tested many things without result. Initially I was thinking that Google Maps API calls were the culprits but I finally discovered that IFrame has same issue.
The only success I had was with a NodeJS fork of Dashing which allowed me to get a map displayed, but I’d like to use the Ruby version.
I can see some demos on the web so I guess it should work.
Does anyone has same issue ? Any clue on how to fix this ?
I’m using :
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
and :
$ ruby -v
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
Thanks Tom
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (10 by maintainers)
Finally I managed to get a very close to widget and acceptable (for me) solution ! For those who could be interested :
1. Create traffic map Create an HTML file calling traffic map, eg traffic.html, as stated here and set your coordinates, default zoom, etc… Note the API key to enter at the bottom :
2. Make file accessible Very important, place this file into Smashing public folder, eg : ~/Smashing/public/traffic.html), as discussed here.
3. Create a dashboard with iframe widget calling local HTML file Here is a example. Note the “/” in front of traffic.html file :
4. Refresh Next step, to be done, will be to setup job for refresh…
This seems working with Firefox add-on disabled… The only drawback I found up to now is that zooming is still enabled despite values in HTML/Javascript.
Hope this helps ! Tom
I uploaded a simple dashboard containing 4 parts :
dashboard_test.erb.txt
Of course for 2, 3 and 4 parts you need to install trafficmap widget and grab a free Google Maps API key.
Part 3 would be more or less interesting as workaround if I could manage some options (hide search box, prevent dragging and zooming…).
I also discovered that subject has been more or less discussed in original project : https://github.com/Shopify/dashing/issues/467 Seems mainly impact Google website.
Still unable to explain why it works/ed for many people… Moreover there are tons of tutorials on the web explainng how to easily embed google maps into iframe. Despite review of widget code which is quite simple I cannot understand why it fails.
I’m reviewing https://developers.google.com/maps/documentation/javascript/examples/layer-traffic as well…
Don’t mess up your whole week-end or spare time on that. It’s not so important 😉 Anyway thanks again for your help.
Tom