What is Qibla?
Qibla (قِبْلَة) is the direction Muslims face during prayer, pointing towards the Kaaba in Makkah, Saudi Arabia. Knowing the precise Qibla direction is essential for performing the five daily prayers correctly.Qibla Compass Display
The Qibla compass is located in the Location & Qibla widget on the right side of the main dashboard.Compass Features
- Compass Rose: A circular compass with cardinal direction markers (N for North)
- Rotating Arrow: A green arrow that points toward Makkah
- Bearing Display: Hover over the compass to see the exact bearing in degrees
- Smooth Animation: The arrow rotates smoothly when your location changes (700ms transition)
The compass arrow always points toward Makkah. To use it, face the direction the arrow is pointing.
How to Use the Qibla Compass
Ensure Location is Set
The Qibla compass requires an accurate location. Make sure you’ve set your location in Settings > Location.
View the Compass
The compass appears automatically on the main dashboard in the Location widget (bottom-right card).
Check the Bearing
Hover over or view the compass to see the exact degree bearing. For example: “Qibla Direction: 58°”
Understanding Bearings
The bearing is expressed in degrees from 0 to 360:- 0° / 360°: North
- 90°: East
- 180°: South
- 270°: West
How Qibla Direction is Calculated
Praydo uses the Great Circle method to calculate the shortest distance between two points on Earth’s surface. This is the most accurate method for determining Qibla direction.Calculation Formula
The app uses this mathematical approach:Kaaba Coordinates
The calculation uses the precise coordinates of the Kaaba:- Latitude: 21.422487° N
- Longitude: 39.826206° E
Compass Component Details
The Qibla compass is a self-contained Svelte component with these characteristics:Visual Elements
-
Static Compass Rose
- Shows cardinal directions
- Gray circular border
- “N” marker at the top for North
- Tick marks at cardinal points (N, S, E, W)
-
Rotating Qibla Arrow
- Primary green color (from theme)
- Pointed arrow shape
- Rotates based on calculated bearing
- Smooth 700ms transition animation
- Drop shadow for depth
Size Customization
The compass defaults to 48×48 pixels but can be customized:- Main Dashboard: 72×72 pixels (larger for better visibility)
- Customizable: Pass
sizeprop to change dimensions
Real-World Usage Tips
Indoor Use
The compass shows direction but doesn’t use your device’s magnetometer. Use it with a real compass or phone compass app to orient yourself.
Verification
Compare with other Qibla apps or a physical compass to verify accuracy, especially if you’re unsure about your location precision.
Location Accuracy
The more precise your location (full address vs. just city), the more accurate the Qibla direction will be.
Automatic Updates
The Qibla direction updates automatically whenever you change your location in settings.
Troubleshooting
Arrow Points to Wrong Direction
Check Your Location
Check Your Location
Verify your location is set correctly in Settings > Location. An incorrect location will give an incorrect Qibla direction.
Verify Coordinates
Verify Coordinates
Check the latitude and longitude shown in your location settings. They should match your actual position.
Use Multiple Sources
Use Multiple Sources
Compare with other Qibla apps or websites to verify. Small differences (1-2 degrees) are normal due to different calculation methods.
Compass Not Showing
Location Not Set
Location Not Set
The compass requires a valid location. Go to Settings > Location and search for your location.
Invalid Coordinates
Invalid Coordinates
If coordinates are 0,0 or invalid, the compass may not display correctly. Reset your location.
Using with Device Compass
For the best experience, use Praydo’s Qibla bearing with your device’s built-in compass:The Qibla compass in Praydo is a visual indicator showing the calculated direction. It doesn’t use your device’s magnetometer or sensors.