|
17 | 17 | <script src="../services/attr2_options.js"></script>
|
18 | 18 | <script>
|
19 | 19 | 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]}, |
23 | 21 | {pos:[40.74, -74.18]}, {pos:[40.75, -74.17]}, {pos:[40.76, -74.16]}, {pos:[40.77, -74.15]}];
|
24 | 22 | }
|
25 | 23 | </script>
|
|
29 | 27 | <div ng-controller="MyCtrl">
|
30 | 28 | <input type="checkbox" ng-model="draggable" /> Draggable
|
31 | 29 | <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> |
36 | 31 | </map>
|
37 | 32 | draggable: {{draggable}}
|
38 | 33 | </div>
|
|
0 commit comments