Leaflet.NavBar icon indicating copy to clipboard operation
Leaflet.NavBar copied to clipboard

Add css and png files to bower.json

Open mahmoudmy opened this issue 9 years ago • 3 comments

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

mahmoudmy avatar Jan 19 '16 15:01 mahmoudmy

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?

davidchouse avatar Jan 21 '16 18:01 davidchouse

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

mahmoudmy avatar Jan 21 '16 20:01 mahmoudmy

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?

chrisamow avatar Dec 03 '20 08:12 chrisamow