I have this problem (copied from my stackoverflow post)
I am trying to set markers to my $scope.map 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 http://leafletjs.com/examples/custom-icons.html
and as it is specified in the API http://leafletjs.com/reference.html#marker
I wanted to add custom icons, but now got hung up here.