LCOGT / lco-education-platform

LCO's education platform for students and teachers
0 stars 0 forks source link

Feature/target entry radec display #40

Closed capetillo closed 5 months ago

capetillo commented 5 months ago

FEATURE: Object name entry returns RA and DEC and rendering of target

Background: It seemed slightly challenging to have kids enter RA and DEC to search for their targets. So instead, now they can enter the target name (as long as it's sidereal) and the Aladin will render the object and RA and DEC fields will render the values

Implementation: Got rid of the parsing logic in AladinSkyMap since we can get the decimal values from the api. Then in SessionStarted the function getRaDecFromTargetName makes an api call and we get the ra and dec of the targetname. Then those are parsed and once parsed, we invoke goToLocation which will render the target in the Aladin

P.S. I'm not sure why everything in this view is gigantic but it is : )

VISUALS

Screen recording of the functionality

https://github.com/LCOGT/lco-education-platform/assets/54489472/28a84f3f-5589-4eb7-8231-b230a26de8a1