If you're looking to implement ng-repeat, take a look at this code snippet. While I'm not entirely sure if it's error-free, the concept remains the same:
// html
<div ng-controller="mapCtrl as vm">
<ng-map zoom="15" center="vm.center">
<marker ng-repeat="position in vm.positions"
position="{{position.pos}}"
title="pos: {{position.pos}}">
</marker>
</ng-map>
// js
angular.module('app').controller('mapCtrl', function() {
var vm = this;
var markersCount = 10;
var distanceBetweenMarkers = 0.01;
vm.center = [40, -70];
vm.positions = [];
for(var i = 0; i < markersCount; i += 1) {
var leftMarker = [vm.center[0] - distanceBetweenMarkers, vm.center[1]];
var rightMarker = [vm.center[0] + distanceBetweenMarkers, vm.center[1]];
vm.positions.push(leftMarker);
vm.positions.push(rightMarker);
}
});
Hopefully, this solution gives you some direction. Feel free to reach out if you have any further questions. 😊
Thank you. 😊