-
Type: Story
-
Status: Open (View Workflow)
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6.1, 1.12.0, 1.13.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
Ubuntu 16.04.3 LTS
ONOS 1.13.0-SNAPSHOT (Github master branch)
-
Epic Link:
-
Sprint:N Sprint #5 - GUI
Hello friends,
I suggest that we can add China geometry map to ONOS Web as a new country backgroup.
I have built the map and want to show you the result as a demo, as the attachment below.
Map data source: China Map from gov.cn
Used tools:
QGIS:open-source software to make shapefile map (*.shp)
http://mapshaper.org/ :Simplify shapefile map (*.shp)
org2org:convert *.shp to *.json(GeoJSON)
geojson-merge:merge two GeoJSON regions (*.json)
geo2topo:convert *.json(GeoJSON) to *.topojson
Operations to ONOS codebase:
1. build and move china.topojson to $ONOS_ROOT/web/gui/src/main/webapp/data/map/
2. add one line of code to UiExtensionManager.java:
new UiTopoMap("china", "China ", "*china", 0.7),
3. recompile and run ONOS, then choose “China” at ONOS web page
Cheers~
Jianwei Mao
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
17607,2 | [ONOS-7559]add China geography map to Web background | master | onos | Status: ABANDONED | -1 | +1 |