index.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <!DOCTYPE html>
  2. <html>
  3. <!--
  4. Copyright (c) 2013 Mapo developers and contributors <mapo.tizen@gmail.com>
  5. This file is part of Mapo.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <head>
  18. <meta charset="utf-8" />
  19. <meta name="viewport"
  20. content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  21. <meta name="description" content="A geolocation application" />
  22. <title>Mapo</title>
  23. <link rel="stylesheet" href="./css/jquery.mobile-1.3.2.css" />
  24. <link rel="stylesheet" href="css/jqm-docs.css" />
  25. <script type="text/javascript" src="./js/jquery-1.9.1.js"></script>
  26. <script src="js/jqm-docs.js"></script>
  27. <script type="text/javascript" src="./js/jquery.mobile-1.3.2.js"></script>
  28. <script type="text/javascript">
  29. <!--
  30. var OpenLayers = null;
  31. var google = null;
  32. var gmaps = null;
  33. //-->
  34. </script>
  35. <script type="text/javascript" src="lib.js"></script>
  36. <script type="text/javascript" src="js/main.js"></script>
  37. <link rel="stylesheet" href="css/style.css" />
  38. </head>
  39. <body>
  40. <!-- Page 1 : My position -->
  41. <div data-role="page" id="position" class="ui-page">
  42. <div data-role="header" data-id="myHeader" data-position="fixed">
  43. <!-- <input type="button" onclick="getLocation()" value="Position"/> -->
  44. <a href="javascript:void(0);" data-role="button"
  45. onclick="getLocation()" id="home" class="ui-btn-left"
  46. data-mini="true" data-icon="home">Update</a>
  47. <h1 class="ui-title">MAPO</h1>
  48. <a data-role="button" id="exit" class="ui-btn-right-mini"
  49. data-icon="delete" onclick="quit()">Exit</a>
  50. <div data-role="navbar">
  51. <ul>
  52. <li><a href="#position" class="ui-btn-active ui-state-persist">Position</a></li>
  53. <li><a href="#map">Map</a></li>
  54. <li><a href="#settings">Settings</a></li>
  55. <li><a href="#about">About</a></li>
  56. </ul>
  57. </div>
  58. <!-- /navbar -->
  59. </div>
  60. <!-- /header -->
  61. <div data-role="content">
  62. <form>
  63. <table>
  64. <tr>
  65. <td><label for=lat>Latitude<br />N+/S-:
  66. </label></td>
  67. <td><input type="text" id="lat" value="26.357865"
  68. onChange="changeLat(lat.value);" /></td>
  69. </tr>
  70. <tr>
  71. <td><label for=lon>Longitude<br />W+/E-:
  72. </label></td>
  73. <td><input type="text" id="lon" value="127.783782"
  74. onChange="changeLon();" /></td>
  75. </tr>
  76. </table>
  77. <label for="dms">DMS (degree, minutes, seconds):</label> <input
  78. type="text" id="dms" value="N 26° 21' 28&quot; E 127° 47' 1&quot;"
  79. onChange="changeDMS();" />
  80. </form>
  81. <div data-role="collapsible" data-collapsed="true">
  82. <h3>Share:</h3>
  83. <div data-role="controlgroup">
  84. <button onclick="sendEmail()">Email</button>
  85. <button onclick="sendMessage()">Message</button>
  86. <button onclick="createCalendarEvent()">Calendar</button>
  87. <button onclick="createContact()">Contact</button>
  88. <button onclick="call()">Call</button>
  89. <!-- <button onclick="sendBluetooth()">Bluetooth</button> -->
  90. </div>
  91. </div>
  92. <div data-role="collapsible" data-collapsed="true">
  93. <h3>Web:</h3>
  94. <div data-role="controlgroup">
  95. <button onclick="goToURL('OSM')">OpenStreetMap</button>
  96. <button onclick="goToURL('HERE')">Here Maps</button>
  97. <button onclick="goToURL('GM')">Google Maps</button>
  98. <button onclick="goToURL('wigle')">Wigle (WiFi)</button>
  99. </div>
  100. </div>
  101. </div>
  102. <!-- /content -->
  103. <div data-role="footer" data-id="myFooter" data-position="fixed">
  104. Copyleft: GPL-3.0+ : http://notabug.org/tizen/mapo</div>
  105. <!-- /footer -->
  106. </div>
  107. <!-- /page #position-->
  108. <!-- Page 2 : Search a place -->
  109. <div data-role="page" id="map" class="ui-page">
  110. <div data-role="header" data-id="myHeader" data-position="fixed">
  111. <a href="javascript:void(0);" data-role="button"
  112. onclick="getLocation()" id="home" class="ui-btn-left"
  113. data-icon="home">Update</a>
  114. <h1 class="ui-title">MAPO</h1>
  115. <a data-role="button" id="exit" class="ui-btn-right"
  116. data-icon="delete" onclick="quit()">Exit</a>
  117. <div data-role="navbar">
  118. <ul>
  119. <li><a href="#position">Position</a></li>
  120. <li><a href="#map" class="ui-btn-active ui-state-persist">Map</a></li>
  121. <li><a href="#settings">Settings</a></li>
  122. <li><a href="#about">About</a></li>
  123. </ul>
  124. </div>
  125. <!-- /navbar -->
  126. </div>
  127. <!-- /header -->
  128. <div data-role="content">
  129. <div id="myMap">
  130. <a data-icon="delete" onclick="quit()"> Wont work if not online,
  131. please connect to internet before restarting application Exit</a>
  132. </div>
  133. </div>
  134. <!-- /content -->
  135. <div data-role="footer" data-id="myFooter" data-position="fixed">
  136. Copyleft: GPL-3.0+ : http://notabug.org/tizen/mapo</div>
  137. <!-- /footer -->
  138. </div>
  139. <!-- /page #place-->
  140. <!-- Page 3 : Settings -->
  141. <div data-role="page" id="settings" class="ui-page">
  142. <div data-role="header" data-id="myHeader" data-position="fixed">
  143. <a href="javascript:void(0);" data-role="button"
  144. onclick="getLocation()" id="home" class="ui-btn-left"
  145. data-icon="home">Update</a>
  146. <h1 class="ui-title">MAPO</h1>
  147. <a data-role="button" id="exit" class="ui-btn-right"
  148. data-icon="delete" onclick="quit()">Exit</a>
  149. <div data-role="navbar">
  150. <ul>
  151. <li><a href="#position">Position</a></li>
  152. <li><a href="#map">Map</a></li>
  153. <li><a href="#settings" class="ui-btn-active ui-state-persist">Settings</a></li>
  154. <li><a href="#about">About</a></li>
  155. </ul>
  156. </div>
  157. <!-- /navbar -->
  158. </div>
  159. <!-- /header -->
  160. <div data-role="content">
  161. <table width="100%">
  162. <tr>
  163. <td><label for="switchOnline">Connection:</label></td>
  164. <td><select name="switchOnline" id="switchOnline"
  165. data-role="slider" onchange="switchOnline()">
  166. <option value="offline" selected>Offline</option>
  167. <option value="online">Online</option>
  168. </select></td>
  169. <tr>
  170. <tr>
  171. <td><label for="switchEnergy">Energy saving:</label></td>
  172. <td><select name="switchEnergy" id="switchEnergy"
  173. data-role="slider">
  174. <option value="off">Off</option>
  175. <option value="on" selected>On</option>
  176. </select></td>
  177. </tr>
  178. <tr>
  179. <td><label for="switchDeveloper">Developer mode:</label></td>
  180. <td><select name="switchDeveloper" id="switchDeveloper"
  181. data-role="slider" onchange="switchDeveloper()">
  182. <option value="off" selected>Off</option>
  183. <option value="on">On</option>
  184. </select></td>
  185. </tr>
  186. <tr>
  187. <td colspan="2"><label for="zoom">Zoom:</label> <input
  188. type="range" name="zoom" id="zoom" value="18" min="1" max="20"
  189. onchange="refresh()" /></td>
  190. </tr>
  191. </table>
  192. <div data-role="controlgroup">
  193. <button onclick="settingsLocation()">Location</button>
  194. </div>
  195. <div data-role="controlgroup">
  196. <button onclick="settings()">System</button>
  197. </div>
  198. </div>
  199. <!-- /content -->
  200. <div data-role="footer" data-id="myFooter" data-position="fixed">
  201. Copyleft: GPL-3.0+ : http://notabug.org/tizen/mapo</div>
  202. <!-- /footer -->
  203. </div>
  204. <!-- /page #options-->
  205. <!-- Page 3 : about -->
  206. <div data-role="page" id="about" class="ui-page">
  207. <div data-role="header" data-id="myHeader" data-position="fixed">
  208. <a href="javascript:void(0);" data-role="button"
  209. onclick="getLocation()" id="home" class="ui-btn-left"
  210. data-icon="home">Update</a>
  211. <h1 class="ui-title">MAPO</h1>
  212. <a data-role="button" id="exit" class="ui-btn-right"
  213. data-icon="delete" onclick="quit()">Exit</a>
  214. <div data-role="navbar">
  215. <ul>
  216. <li><a href="#position">Position</a></li>
  217. <li><a href="#map">Map</a></li>
  218. <li><a href="#settings">Settings</a></li>
  219. <li><a href="#about" class="ui-btn-active ui-state-persist">About</a></li>
  220. </ul>
  221. </div>
  222. <!-- /navbar -->
  223. </div>
  224. <!-- /header -->
  225. <div>
  226. <h3>Mapo geoloc</h3>
  227. This application is FLOSS and licenced under GPL-3.0+</div>
  228. <div data-role="collapsible" data-collapsed="true" id="logView"
  229. style="visibility: hidden;">
  230. <h3>Developer Log:</h3>
  231. <div data-role="controlgroup">
  232. <div id="console"></div>
  233. </div>
  234. </div>
  235. <div data-role="collapsible" data-collapsed="true" id="recordView"
  236. style="visibility: hidden;">
  237. <h3>Record:</h3>
  238. <div data-role="controlgroup">
  239. <table width="100%">
  240. <tr>
  241. <td><label for="switchRecord">Record:</label></td>
  242. <td><select name="switchRecord" id="switchRecord"
  243. data-role="slider" onchange="record()">
  244. <option value="stop">Stop</option>
  245. <option value="start">Start</option>
  246. </select></td>
  247. </tr>
  248. </table>
  249. <label for="selectorTimeout">Sampling rate (seconds):</label> <input
  250. type="range" name="selectorTimeout" id="selectorTimeout" value="10"
  251. min="1" max="100" />
  252. <p id="locationInfo"></p>
  253. </div>
  254. </div>
  255. <div>
  256. <h3>CREDITS / THANKS</h3>
  257. <ul>
  258. <li>Philippe Coval
  259. <li>Theo Gerin
  260. <li>Sebastien Bocahu
  261. <li>OpenLayers.org
  262. <li>maps.google.com
  263. <li>Tizen project
  264. <li>TizenExperts
  265. <li>BeMyApp
  266. <li>LinuxFoundation
  267. <li>Samsung OSG
  268. <li>Intel OTC
  269. <li>Eurogiciel Opensource Dept
  270. </ul>
  271. </div>
  272. <!-- /content -->
  273. <div data-role="footer" data-id="myFooter" data-position="fixed">
  274. Copyleft: GPL-3.0+ : http://notabug.org/tizen/mapo</div>
  275. <!-- /footer -->
  276. </div>
  277. <!-- /page #options-->
  278. <!-- cache version -->
  279. <script src="http://openlayers.org/api/OpenLayers.js"></script>
  280. <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
  281. </body>
  282. </html>