-
Notifications
You must be signed in to change notification settings - Fork 141
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
is it totally broken? #11
Comments
Is there any output on the console? |
Hi! Thanks for trying out ngx-mapbox-gl! Do you have the map canvas inside the dom (check with devtools)? |
Thanks for the responses guys! @Wykks Thanks for updating the docs :-)
note how it says somethign about missing css... is that like an error message in the HTML?
I must emphasize how cool this looks from the outside. If we can get it working before my project goes too far I think you can expect some contributions from myself and my team... |
(The div about missing css get Here a minimal working example with angular-cli:
That would be awesome! EDIT: Oh right! Check the size of
In your AppComponent I'm really not good at css... There must be a way to make this easier... Edit: Nevermind, I found the issue, fix incoming (you can just add |
Hey that did the trick!! Cool. Really reassuring that the package author is around to help out, given the lack of a community right now. Looking forward to experimenting with this. I'm really not good with CSS either lol... I'll be making heavy use of drawing tools in my app. Think there's a chance drawing tools will be integrated into this package? |
If your talking about mapbox-gl-draw, yes probably. Not sure yet if I'll do a separate package for that. |
Yes it's doable. It was the first thing I tested and at a glance seems to be working like normal. I like that this provides an easy way to expose the map instance to the controller upon loading so we can do anything we want the more javascripty way while taking advantage of the Angular way you have provided. |
Hello I used it in the component as you say but it still doesn't work for me. when I reload the page if it works, the canvas size has other values
|
Hi! Sorry I'm unable to understand your issue... Can you please reproduce it in stackblitz or a github repo ? Thanks. |
What if the only thing I'm seeing in dev tools is: |
I just tried this several ways, precisely as described and with some tweaks, and the map simply never shows up. I get no console errors unless I try to put the map in the component and listen for onLoad in which case map is undefined and if I try to initialize it (map: Map = new Map()) then I get other errors.
app.module.ts:
app.component.html (also tried without the load event):
app.component.css (also tried with 100%):
app.component.ts (also tried with no map code):
I was really hoping to use this in a big project. Seems like it would be super-useful. I'm hoping I am just missing something or some recent release just broke it temporarily?
The text was updated successfully, but these errors were encountered: