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

Add css and png files to bower.json #2

Open
mahmoudmy opened this issue Jan 19, 2016 · 3 comments
Open

Add css and png files to bower.json #2

mahmoudmy opened this issue Jan 19, 2016 · 3 comments

Comments

@mahmoudmy
Copy link

Nice job!
please add Leaflet.NavBar.css and image files to bower.json. These are necessary for proper asset loading.

@davidchouse
Copy link
Owner

Thanks!

Bower doesn't really have a spec for adding assets to bower.json to my knowledge...can you point me to an example of what you need?

@mahmoudmy
Copy link
Author

I mean adding these files to main array in bower.json

@chrisamow
Copy link

Hi - thanks for the nice work David!
I'm using this from vue/webpack and have it working with:

import "leaflet-navbar"                                                       
import "leaflet-navbar/Leaflet.NavBar.css" 

It functions, navigating around the map - but the icons are missing...

So I'm not sure if there is a way to get images accessible to the plugin correctly with a
require('leaflet-navbar/img/arrow-left_000000_14.png') //for example
for each of the six images...
But it doesn't really look set up for that - because of the direct references in the css...
Any ideas?

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

3 participants