mapviewer: Change layer id to 11001 to avoid conflict.
[AGL/meta-agl-demo.git] / recipes-demo-hmi / navigation / mapviewer / mapviewer.service
1 [Unit]
2 Conflicts=getty@tty1.service
3 After=weston.service HomeScreen.service
4
5 # map viewr is a child application which can work with navigation.
6 # This app requires mapdata. It has to be stored at /var/mapdata/navi_data_UK .
7 # currently the position to be shown is 384x368 surface on screen 1 for CES2017 cluster demo.
8
9 [Service]
10 Environment=NAVI_DATA_DIR=/var/mapdata/navi_data_UK/japan_TR9 XDG_RUNTIME_DIR=/run/user/0
11 ExecStartPre=/bin/sleep 5
12 ExecStart=/usr/bin/mapview
13 ExecStartPost=/usr/bin/LayerManagerControl create layer 11001 1920 1080
14 ExecStartPost=/usr/bin/LayerManagerControl set layer 11001 visibility 1
15 ExecStartPost=/usr/bin/LayerManagerControl set screen 1 render order 11001
16 ExecStartPost=/usr/AGL/mapviewer/mapviewer-settings.sh
17
18 ExecStop=/usr/bin/killall -s KILL mapview
19 Type=simple
20 Restart=always
21
22 [Install]
23 WantedBy=default.target