huafu / ember-google-map

An Ember addon to include a google-map Ember friendly component in your apps.
http://huafu.github.io/#/ember?name=ember-google-map
MIT License
87 stars 34 forks source link

Blank map? #62

Closed brandonparsons closed 9 years ago

brandonparsons commented 9 years ago

I'm not quite sure what I'm doing wrong - help would be appreciated.

I've tried including the base component in my application:

{{google-map lat=0 lng=0}}

And all I get is a blank/empty div I've tried setting other lat and lng values but to no avail.

Everything is installed properly - I get the following when booting the ember app:

DEBUG: [google-maps] creating new map: {zoom: 5, mapTypeId: roadmap, center: (0, 0)}

The DOM elements appear to be there, but I can't see anything!

huafu commented 9 years ago

You need to define a with and height to the canvas div, look at the docs in the wiki of this repo (can't link to the right page now, on my phone)

brandonparsons commented 9 years ago

:+1: Thanks.

Sorry - I thought I had done this (I did read through the wiki). But it turns out I got myself confused between a few files...... :)