Skip to content

Commit 3bdc89a

Browse files
committed
Update marker_with_ng_repeat.html
1 parent 29b330f commit 3bdc89a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

testapp/marker_with_ng_repeat.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
<script src="../services/attr2_options.js"></script>
1818
<script>
1919
function MyCtrl($scope) {
20-
$scope.positions =[ [40.71, -74.21], [40.72, -74.20], [40.73, -74.19],
21-
[40.74, -74.18], [40.75, -74.17], [40.76, -74.16], [40.77, -74.15]];
22-
$scope.positions2 =[ {pos:[40.71, -74.21]}, {pos:[40.72, -74.20]}, {pos: [40.73, -74.19]},
20+
$scope.positions =[ {pos:[40.71, -74.21]}, {pos:[40.72, -74.20]}, {pos: [40.73, -74.19]},
2321
{pos:[40.74, -74.18]}, {pos:[40.75, -74.17]}, {pos:[40.76, -74.16]}, {pos:[40.77, -74.15]}];
2422
}
2523
</script>
@@ -29,10 +27,7 @@
2927
<div ng-controller="MyCtrl">
3028
<input type="checkbox" ng-model="draggable" /> Draggable
3129
<map zoom="11" center="[40.74, -74.18]">
32-
<marker ng-repeat="p in positions" position="{{p}}" title="pos: {{p}}"></marker>
33-
</map>
34-
<map zoom="11" center="[40.74, -74.18]">
35-
<marker ng-repeat="p in positions2" draggable="{{draggable}}" position="{{p.pos}}" title="pos: {{p.pos}}"></marker>
30+
<marker ng-repeat="p in positions" draggable="{{draggable}}" position="{{p.pos}}" title="pos: {{p.pos}}"></marker>
3631
</map>
3732
draggable: {{draggable}}
3833
</div>

0 commit comments

Comments
 (0)