Fix internal bug and change the design of ico-app-samplenavi
[profile/ivi/ico-uxf-homescreen-sample-apps.git] / ico-app-samplenavi / res / Map / js / navi_defines.js
1 /*\r
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.\r
3  *\r
4  * This program is licensed under the terms and conditions of the \r
5  * Apache License, version 2.0.  The full text of the Apache License is at\r
6  * http://www.apache.org/licenses/LICENSE-2.0\r
7  *\r
8  */\r
9 \r
10 /**\r
11  *  Defines\r
12  */\r
13 \r
14 const MSG_TYPE = \r
15 {\r
16     CHG : 0,                                        // Change Message\r
17     SEQ : 1,                                        // Sequence Message\r
18     ERR : 2,                                        // Error Message\r
19     \r
20 };\r
21 \r
22 const SEQUENCE_MODE =                               // Sequence\r
23 {\r
24     START : 0,                                      // Start Application\r
25     CONF : 1,                                       // Display Conf.\r
26     DIST : 2,                                       // Display Dist.\r
27     NAVI : 3,                                       // Run Navigation\r
28     NAVI_END : 4                                    // End Navigation(no use)\r
29 };\r
30 \r
31 const SHOWING_ROUTE         = 1;                    // Current Route number\r
32 const TMP_LAT               = 35.47945;             // Initialize Latitude\r
33 const TMP_LON               = 139.40026;            // Initialize Longitude\r
34 const DEFAULT_ZOOM          = 17;                   // Zoom value for Map\r
35 const EDJE_PATH             = '/opt/apps/org.tizen.ico.app-samplenavi/data';\r
36 const EDJE_CONF_NAME        = '/samplenavi_conf.edj';\r
37 const EDJE_DIST_NAME        = '/samplenavi_conf_dist.edj';\r
38 const APP_NO                = '300';\r
39 const IP_ADDR               = '127.0.0.1';\r
40 const WEBSOCKET_PORT        = '50414';\r
41 \r
42 const KEY_LAT = "LAT";\r
43 const KEY_LON = "LON";\r
44 \r