In order to build a scenario that does not conflict with anything else we will create a complete new renderer and additional layer.
Either follow the instructions in the section "Step by Step instructions to develop a CAP based source service" or clone this repo to create and deploy the service (mbt build
and cf deploy
).
To implement this scenario as described in here and/or if you want to use colorful symbols you will need to configure a custom Mapbox style. Skip this step if you simply want to chose circles (in which case you have to adjust the layer definition outlined below)
Configure the new Scenario
Open up the NSS configuration app (Configure Network Maps - Last App in the list below)
Start by Creating a new Renderer
Create a new Layer
{
"icon-image": ["match",
["get", "Status"],
1,"truck-green-50",
2,"truck-orange-50",
"truck-red-50"],
"icon-size": 0.5
}
Create a new Scenario
Select the Work Order App application, click edit and add the new scenario to the Scenarios list.
Once you have performed these steps you should be good to go. Open the 'Work Orders' App, navigate to the 'GEOMETRY' Tab and switch the scenario to yours. It should looks like this:
cds init
commandcds add hana
command - memory: 200M # this number is merely for testing
- disk-quota: 250M
config:
schema: teched_2021
# ------------------- APP ROUTER MODULE -----------------------
- name: teched-2021-router # Approuter Module channeling the traffic to the correct destination
# ------------------------------------------------------------
type: nodejs
path: approuter
parameters:
memory: 100M
buildpack: nodejs_buildpack
requires:
- name: teched-2021-srv_api
group: destinations
properties:
name: teched-2021-srv_api
url: ~{srv-url}
forwardAuthToken: true
timeout: 600000
properties:
COOKIES: >
{ "SameSite": "None" }
CORS: >
[
{
"uriPattern": "^(.*)$",
"allowedOrigin": [
{ "host": "*.hana.ondemand.com", "protocol": "https" },
{ "host": "*.hana.ondemand.com", "protocol": "http" }
],
"allowedMethods": ["GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE"],
"allowedHeaders": ["Origin", "Accept", "X-Requested-With", "Content-Type",
"Access-Control-Request-Method",
"Access-Control-Request-Headers", "Authorization", "X-Sap-Cid",
"X-Csrf-Token", "Accept-Language"],
"exposeHeaders": ["Accept", "Authorization", "X-Requested-With", "X-Sap-Cid",
"Access-Control-Allow-Origin", "Access-Control-Allow-Credentials",
"X-Csrf-Token", "Content-Type"]
}
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |