Label positioning in Scripts

Asked by Atlan

Here's a few things I came across when using the LabelMgr.labelObject() method.

1) The possible values for the "style" parameter are not documented in http://www.stellarium.org/doc/head/classLabelMgr.html
2) I have a Star at Az=115, so east would be *left*. But using side="E", the label appears on the *right*.
    - Which coordinate system is relevant for this param, AltAz or Eq?
    - if Eq is reference, East is the direction of increasing RA. so the E-label must be left in this example
    - if AltAz is reference, East would depend of the viewing direction (east is left when looking south, east is north when looking north);

Am I missing something?
==================================================================

// Shows how to label an object

LabelMgr.deleteAllLabels();
core.clear("natural");

core.setDate("2016:09:14T00:00:00");
core.setObserverLocation(0, 45, 0, 1, "", "Earth");

StelMovementMgr.zoomTo(90,0.5);
StelMovementMgr.setFlagTracking(true);
core.selectObjectByName("Menkar", true);

var text="TEST-LABEL";
var objectName="Menkar";
var visible=true;
var fontSize=16;
var fontColor="#ffff00";
var side="NE";
var labelDistance=27.0;
// TextOnly Just put the label near the object.
// Line Draw a line from the label text to the object.
style="Line";

LabelMgr.labelObject(text,
 objectName,
 visible,
 fontSize,
 fontColor,
 side,
 labelDistance,
 style);

---
Stellarium 0.15.0, Windows 10

Question information

Language:
English Edit question
Status:
Solved
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Wolf
Solved:
Last query:
Last reply:
Revision history for this message
Best Alexander Wolf (alexwolf) said :
#1
Revision history for this message
Atlan (qayxss) said :
#2

Ok, got it. Thanks