Ionic & LeafletJS set marker


Hi there,

I have this problem (copied from my stackoverflow post)

I am trying to set markers to my $ variable with

, but I keep getting this error:

TypeError: t.addLayer is not a function at o.Marker.o.Class.extend.addTo (leaflet.js:7) at mapController.js:82
I don’t know why, because I am basically doing the same as in

and as it is specified in the API

I wanted to add custom icons, but now got hung up here.