საიტის გასაუმჯობესებელი სამუშაოების მიმდინარეობისას, შესაძლებლობების ნაწილი შეიზღუდება. თუ სტატიით ვერ მოახერხებ ხარვეზის გამოსწორება და შეკითხვის დასმა გსურთ, ჩვენი მხარდაჭერის გუნდი დაგეხმარებათ @FirefoxSupport გვერდის მეშვეობით Twitter-ზე და /r/firefox განყოფილებაში Reddit-ზე.

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

Getting device orientation to magnetic north

  • 2 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 4 ნახვა
  • ბოლოს გამოეხმაურა grantdelandro

This is a web developer question so sorry if it doesn't belong here but I've tried search everywhere else.

Is it possible to get a devices orientation from magnetic north of firefox mobile? I can get this value for every other major browser, but not FireFox Mobile. - DeviceOrientationEvent.webkitCompassHeading is not supported. - DeviceOrientationEvent.absolute is false so the alpha is not set to north. - GeolocationCoordinates.heading is not useful. - Magnetometer is not supported.

This is for a web based 3D wayfinding mobile page I'm developing for a university to help staff and students navigate campuses, and having the 3D map on the page orientate with the device really helps.

This is a web developer question so sorry if it doesn't belong here but I've tried search everywhere else. Is it possible to get a devices orientation from magnetic north of firefox mobile? I can get this value for every other major browser, but not FireFox Mobile. - DeviceOrientationEvent.webkitCompassHeading is not supported. - DeviceOrientationEvent.absolute is false so the alpha is not set to north. - GeolocationCoordinates.heading is not useful. - Magnetometer is not supported. This is for a web based 3D wayfinding mobile page I'm developing for a university to help staff and students navigate campuses, and having the 3D map on the page orientate with the device really helps.

ყველა პასუხი (2)

Hi

This is a great question, but not one that we can help you with. I recommend that you ask at:

https://stackoverflow.com/

It appears there is no way to get the degrees to Magnetic North on Fire Fox mobile. You can get this value on every other major browser and it is very useful for augment reality and way finding web apps.

I have looked for hours but can find no way to even suggest to the developers to look into this. Can anyone suggest a way to post a request for this to the devs?

This is part of the W3C DeviceOrientation Specification and would be great to have Mozilla implement it. https://www.w3.org/TR/orientation-event/#deviceorientationabsolute https://developer.mozilla.org/en-US/docs/Web/API/Window/ondeviceorientationabsolute