angular-mapbox icon indicating copy to clipboard operation
angular-mapbox copied to clipboard

Markers not working with ng-repeat

Open elarion opened this issue 9 years ago • 1 comments

Few days ago, I noticed that markers weren't displaying anymore (I may have changed something) I don't know why and now, I want to fix this problem.

So in my case, I have an angular controller in which I init mapbox with my access token. My map is displaying well, and I can a display a marker or more than one (without an ng-repeat of course). So when a user load my page, I directly make an ajax request to get my object containing my markers. and when I fill the $scope.markers with the data I retrieve from my server, nothing happen.

What did I miss ? it was working so it can't be too hard to solve. Thank you.

PS: if I use the native method to add a marker it's working. (ex: L.marker([38.913184,-77.031952]).addTo(mapLeaflet))

EDIT: In fact, every angular content I try to append inside the is not working. For example: // Not working. // Working. This is totally confusing..

elarion avatar Sep 29 '15 10:09 elarion

can you post a gist? working for me.

arieljake avatar Nov 18 '15 10:11 arieljake