-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Maps not displaying without 'getElementById' #65
Comments
I'm not familiar with angular, can you console.log(element[0])? Can you send any console errors that are being reported? |
Any progress in this issue from any side? I am also interested in a datamaps directive for Angular. |
If somebody can get me a sample (jsbin, jsfiddle, .zip archive) of it not working with angular, I'd love to tinker with it and figure out how to get it working. I have some angular engineers at work I can consult. I just have 0 experience with angular. |
I have tried to reproduce @arnm environment in this Plunker. As you can see, nothing is displayed. Hope it helps. Since AngularJS is the current reference in webapps, I think it would be quite interesting to get this going. |
I'm seeing Angular errors even when I remove all DataMaps calls, so I don't believe DataMaps is the issue here... @jagomf |
Country tags (on hover) seem to be showing far away down... |
I updated the Plunker to set 'display: block' on the containing element which fixes the hover position. |
I'm writing an AngularJS directive around your maps but the maps won't show up correctly.
code:
As you can see I have defined the dimensions of the container before rendering the map but it still does not show correctly.
However the map does show when the element attribute is "document.getElementById('someid')". But it does not work with element[0] even though they are the same object. The svg gets populated but it does not show the map.
The text was updated successfully, but these errors were encountered: