Rework mapviewer and mapviewer-demo
[AGL/meta-agl-demo.git] / recipes-demo-hmi / navigation / mapviewer / mapviewer.service
1 [Unit]
2 Requires=afm-api-windowmanager@0.service
3 After=afm-api-windowmanager@0.service
4
5 # mapviewer 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 cluster demo.
8
9 [Service]
10 Environment="XDG_RUNTIME_DIR=/run/platform/display"
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 ExecStop=/usr/bin/killall -s KILL mapview
18 Type=simple
19 Restart=always
20
21 [Install]
22 WantedBy=afm-user-session@.target