implement topojson based map rendering
position devices based on location.lat/lng
use viewbox on topo root svg to support live scaling of map and nodes
Change-Id: I56c2b1e211ab63a694b817d04ee4bb62ac62cec4
diff --git a/web/gui/src/main/webapp/json/ev/simple/ev_1_onos.json b/web/gui/src/main/webapp/json/ev/simple/ev_1_onos.json
index fa7ae6e..c478378 100644
--- a/web/gui/src/main/webapp/json/ev/simple/ev_1_onos.json
+++ b/web/gui/src/main/webapp/json/ev/simple/ev_1_onos.json
@@ -6,18 +6,14 @@
"online": false,
"location": {
"type": "latlng",
- "lat": 37.6,
- "lng": 122.3
+ "lat": 37.7833,
+ "lng": -122.4167
},
"labels": [
"0000ffffffff0008",
"FF:FF:FF:FF:00:08",
"sw-8",
""
- ],
- "metaUi": {
- "x": 520,
- "y": 350
- }
+ ]
}
}
diff --git a/web/gui/src/main/webapp/json/ev/simple/ev_2_onos.json b/web/gui/src/main/webapp/json/ev/simple/ev_2_onos.json
index 87f35d6..d12e194 100644
--- a/web/gui/src/main/webapp/json/ev/simple/ev_2_onos.json
+++ b/web/gui/src/main/webapp/json/ev/simple/ev_2_onos.json
@@ -10,9 +10,10 @@
"sw-3",
""
],
- "metaUi": {
- "x": 800,
- "y": 280
+ "location": {
+ "type": "latlng",
+ "lat": 40.7127,
+ "lng": -74.0059
}
}
}