Skip to content
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

No Map Rendered with Ruby Projects (original or fork) Only with NodeJS Projects #4

Open
thomas-gt opened this issue Oct 18, 2016 · 0 comments

Comments

@thomas-gt
Copy link

thomas-gt commented Oct 18, 2016

Hello,

I installed your widget as indicated and I did not get any map rendering.

Actually I discovered this problem after installing dashing-trafficmap widget which is a fork of yours.
Then I installed dashing-map and I cannot get any map being generated neither with Ruby projects (original dashing project or with dashing-io fork). It only worked with a NodeJS fork that I do not want to use.

I tested many things (syntax, option, etc...) without being able to find out the reason. It seems there is no obvious error threw (checked with debugger).

Of course I have a Google Maps API Key placed into layout.erb file :

script src="https://maps.googleapis.com/maps/api/js?key=this_is_my_google_api_key&sensor=false&libraries=visualization"></script>

Then I created a simplified dashboard (from sample.erb) with dashing-map widget alone :

<% content_for :title do %>My super sweet dashboard<% end %>                                                                          
<div class="gridster">                                                                                                                
  <ul>                                                                                                                                
    <li data-row="1" data-col="1" data-sizex="3" data-sizey="2">                                                                      
      <div data-id="map" data-view="Map" data-title="Map" data-type="heat" data-color="#222222"></div>                                
    </li>                                                                                                                             
  </ul>                                                                                                                               
  <center><div style="font-size: 12px">Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \ht
tp://<%=request.host%>:<%=request.port%>/widgets/welcome</div></center>                                                               
</div>     

When accessing (empty) page I get a log line which shows that something happens :

XXX.XX.XX.XXX - - [18/Oct/2016 15:35:02] "GET /views/map.html HTTP/1.1" 200 27 0.0036

But nothing rendered :-(

Have you ever hit such problem ?
Any clue on how to fix this ?
Thanks
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant