Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-7559

add China geography map to Web background

    XMLWordPrintable

    Details

    • 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

      Description

      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

       

       

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            scondon Sean Condon
            Reporter:
            maojianwei Mao Jianwei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: