ofrohn / d3-celestial

A star map with d3.js
BSD 3-Clause "New" or "Revised" License
631 stars 177 forks source link

Set The initialize Data #128

Open ErfanMohammadi20 opened 2 years ago

ErfanMohammadi20 commented 2 years ago

How set initialize Data Like : datetime lat , lng

and what is the orientation in center: [lat, lng, orientation ] ?

i currently do like below but it dosnt work currectly : set this on config : center: null geopos: [Mylat, Mylng] and do this after Celestial.display : Celestial.date(MyDate)

ErfanMohammadi20 commented 2 years ago

i think the proble is with timezone at initialize

i set the lat , lng and it works with 210 timezone at initalize and when i get lat lang from LeafLet map (same location) the lat , lng is same but timezone is diffrent (300)

and this causes changes in sky map

i think if i can set the init timezone to 300 problem will be fixed