I am at a loss to understand how to integrate Leaflet.Graticule into a ui-leaflet/angular-leaflet-directive application. Any pointers as to how this should be done would be much appreciated.
EDIT: To extend the answer from iH8 a little bit, I also had to add a entry to the overrides section in my bower.json:
"overrides": {
"leaflet.Graticule": {
"main": [
"src/L.Graticule.js"
]
}
}
Inject
leafletData
into your controller and use it'sgetMap
promise to grab theL.Map
instance and add the graticule: