blob: cf858356a3a75e21a35a16ce2a6ec1e8f2af0e55 [file] [log] [blame]
Andrea Campanella95c02bd2017-09-01 16:51:03 +02001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
19<div class = "row">
20 <div class = "col-xs-12">
21 <h1>Enterprise Network Map</h1>
22 <div map-lazy-load="https://maps.googleapis.com/maps/api/js?key=AIzaSyA3rQOp26I5a21VQhwLal8Z1x3XGHjXfm4">
23 <ng-map
24 default-style="false"
25 id="foobar"
26 center="0,0"
27 disable-default-u-i="true"
28 map-type-id="ROADMAP"
29 zoom-control="true"
30 min-zoom="2"
31 styles="{{vm.mapStyles}}"
32 >
33 <!--Markers-->
34 <marker
35 ng-repeat="uni in vm.unis"
36 id="marker-{{uni.id}}"
37 position="{{uni.latlng.toString()}}"
38 icon="{{vm.MapConfig.marker}}"
39 on-click="vm.showUni(uni)"
40 >
41 </marker>
42
43 <!--Marker Info Window-->
44
45 <info-window id = "uni-info">
46 <div class = "marker-info">
47 <h4>{{vm.current_uni.name}}</h4>
48 <p>
49 <b>LatLng: </b>{{vm.current_uni.latlng.toString()}}<br/>
50 <b>Cpe id: </b>{{vm.current_uni.cpe_id}}<br/>
51 <b>Tenant: </b>{{vm.current_uni.tenant}}<br/>
52 </p>
53 <button ng-show="vm.canCreateEline" ng-click="vm.createConnection(vm.current_uni)()">Create connection</button>
54 <button ng-show="!vm.canCreateEline && !uni.eline_start" ng-click="vm.finishConnection(vm.current_uni)">Finish connection</button>
55 </div>
56 </info-window>
57
58 <!--Connections-->
59
60 <shape
61 ng-repeat="eline in vm.elines"
62 name="polyline"
63 id="eline-{{eline.id}}"
64 path="{{eline.path}}"
65 stroke-color="{{vm.colorLine(eline.backend_status)}}"
66 stroke-opacity="1.0"
67 stroke-weight="5"
68 on-click="vm.elinePanel({{eline}}, true)"
69 >
70 </shape>
71
72 </ng-map>
73
74 </div>
75 Changes may not display until page refresh.
76 </div>
77</div>
78<!--"https://maps.googleapis.com/maps/api/js?key=AIzaSyA3rQOp26I5a21VQhwLal8Z1x3XGHjXfm4"-->