语言

Menu
Sites
Language
Get altitude

Hi,

Is there a way to get the device's altitude in a web app?

In some examples I found it is implemented with a map where the user points his location. Any suggestions?

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

6 回复
Enjo
hi, in head of index.html
Enjo
hi, in head of index.html
Enjo
meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, height=device-height"
Varsamis
Enjo, you misunderstood. I asked for altitude. Any idea guys? [btw, is there a moderator to sort the replies?]
Marco Buettner
U can use the W3C specifiction of GEO Location API http://www.w3.org/TR/2012/PR-geolocation-API-20120510
Varsamis
thanks for that, Marco.