Questions tagged [heading]
227 questions
3
votes
1 answer
Rotate a feature programmatically Open Layers
TLDR I want to rotate a Feature in my open layers.
I want it to face a certain heading that I am receiving from server.
I know that you can make a feature spin on a point or so on:
window.setInterval(function() {rotateFeature(
pointFeature,…

Sphvn
- 5,247
- 8
- 39
- 57
3
votes
4 answers
Convert user entered true azimuth to magnetic azimuth
I was wondering if there is a way to use CLHeading or CLLocationDirection to convert between true and magnetic azimuth for a USER entered value.
In a normal scenario with plenty of examples on SO, we can use didUpdateHeading:(CLocation) newHeading…

rkh
- 841
- 12
- 29
2
votes
1 answer
Django: markup - set the top heading
I am choosing between markup languages mentioned on https://docs.djangoproject.com/en/dev/ref/contrib/markup/ .
But I need one specific thing - set the top heading. By default, there is h1 the first heading. I need to have h2 as the first. Exists…

yetty
- 2,326
- 2
- 19
- 22
2
votes
1 answer
Internal link to a hyperlink heading
In a document, I'd like to create an internal link. That works as expected on regular links. But when the heading is itself a hyperlink, that doesn't work. How ought one accomplish this?
Trying to link to [[Heading1]] and [[???]]
* Heading1
These…

Jason Hemann
- 327
- 1
- 12
2
votes
0 answers
papaja: modify spacing under headings
I am using the package papaja to write an APA-formatted manuscript with R markdown.
I would like to modify the default spacing under headings (it's presently too large for my taste).
As shown on the sample picture below (document rendered as pdf),…

msoftrain
- 1,017
- 8
- 23
2
votes
2 answers
extract all the headings(titles) from a ppt slides
I am looking for code to extract only the titles from every power point slides. Is there any python function available. Any help is appreciated.

Ankit Kumar
- 41
- 1
- 7
2
votes
0 answers
Rmarkdown H1 headings as tabs (tabset)
I want a layout where the H1 sections are the tabs. Is there a way to do that?
It already bothers me that Rmarkdown uses H1 for section headings instead of titles, which is why this is not straightforward.
Example:
---
title: "The Actual…

abalter
- 9,663
- 17
- 90
- 145
2
votes
1 answer
Gap between heading and navigation
Beginner here.
I'm trying to figure out how to put 5 elements on my nav bar.
First element is heading and the other for are li's.
Hopefully someone can help!
I want to get the following result:
each element fills up 20% of the width
But what I get…

Davis
- 21
- 1
2
votes
4 answers
iOS CoreMotion CMAttitude relative to north pole
I'm currently using CoreMotion's DeviceMotion to get the orientation (roll, pitch, yaw) of the iPhone. Now I would like to have these values relative to the geographic north pole; so I need a CMAttitude reference object containing the roll, pitch…

alxppp
- 23
- 1
- 3
2
votes
1 answer
Using Compass to point to actual coordinate location instead of just North
I have seen a few examples of this but am not sure exactly how to implement it, (such as iPhone Compass GPS Direction) in do I need to call calcBearingWithLatitude in (void)startup?
All I am trying to do is have the compass pull a point from memory…

Alex Muller
- 1,565
- 4
- 23
- 42
2
votes
2 answers
Line high between heading and paragraph
I have the problem that my headings overlap. Here an example. I know that the problem is the line high that is set to 0:
h3 {
line-height:0;
letter-spacing:1px;
}
If I use line high:1 the problem disappears, but the space between the heading and…

J.Dan
- 23
- 4
2
votes
1 answer
Adding paragraph headings programmatically to a UITextView
I have a View Controller that contains a UITextView. This UITextView gets the text updated programmatically depending on the data model controlling it (around 30 different text options). The content in the UITextView will always be quite long, at…

Joe
- 3,772
- 3
- 33
- 64
2
votes
2 answers
vertically div inside heading on the same line
After I kept trying I made some tweaks that would allow me to have the div on the same line with h3, but it's not centered. I simply want to have the div on the same line, next to the h3, with vertically centered h3 text (or the div, it doesn't…

vyperlook
- 91
- 1
- 11
2
votes
3 answers
Mapbox GL JS Bearing
Is it possible in Mapbox GL JS to get the users bearing?
I would like to show the direction in which the user is facing, to assist them in navigating to nearby POI.
I understand that it is possible to set the bearing of the map and also get the…

Daniel Paaske
- 65
- 2
- 12
2
votes
1 answer
How do I figure the weighted mean of headings?
Get mean heading of neighboring turtles
to-report mean-heading [ headings ]
let mean-x mean map sin headings
let mean-y mean map cos headings
report atan mean-x mean-y
end
from that answer gets me part way there but I want is each of the…

King-Ink
- 2,096
- 12
- 18