[CORD-1838] Google Maps China API URL change
Change-Id: I1465c50961ec4b953ed0dadbc4edd78dd335603c
diff --git a/xos/gui/README.md b/xos/gui/README.md
index 73a894c..f6144cd 100755
--- a/xos/gui/README.md
+++ b/xos/gui/README.md
@@ -5,7 +5,7 @@
Having a profile deployed via Ansible is required. To use the GUI, include the following in the profile manifest
being used in `cord/build/platform-install/profile_manifests`.
-```
+```yaml
enabled_gui_extensions:
- name: vnaasgui
path: orchestration/vnaas/xos/gui
@@ -14,6 +14,20 @@
- mapconstants.js
```
+### Usage in China
+The usual Google Maps API is not available in China. To fix this problem, change the API url in
+`src/app/components/vnaasMap.component.html`.
+
+#### Before
+```html
+<div map-lazy-load="https://maps.googleapis.com/maps/api/js?key={API_KEY}">
+```
+
+#### After
+```html
+<div map-lazy-load="http://maps.google.cn/maps/api/js?key={API_KEY}">
+```
+
## Features
- Maps all UserNetworkInterface locations, and displays the status of created ELine connections
diff --git a/xos/gui/src/app/components/vnaasMap.component.html b/xos/gui/src/app/components/vnaasMap.component.html
index 65dff42..80d1649 100755
--- a/xos/gui/src/app/components/vnaasMap.component.html
+++ b/xos/gui/src/app/components/vnaasMap.component.html
@@ -18,7 +18,10 @@
<div class = "row">
<div class = "col-xs-12">
- <h1>Enterprise Network Map</h1>
+ <h1>vNaaS Map</h1>
+ <!--
+ In China, replace 'https://maps.googleapis.com/' with 'http://maps.google.cn/' below
+ -->
<div map-lazy-load="https://maps.googleapis.com/maps/api/js?key=AIzaSyA3rQOp26I5a21VQhwLal8Z1x3XGHjXfm4">
<ng-map
default-style="false"