AstronomyAPI / Samples

Examples for Astronomy API
https://astronomyapi.com
MIT License
30 stars 3 forks source link

Changing "observer" props does not update the image #58

Closed MikaCinc closed 10 months ago

MikaCinc commented 1 year ago

I'm using the https://docs.astronomyapi.com/endpoints/studio/star-chart api:

await fetch("https://api.astronomyapi.com/api/v2/studio/star-chart", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Basic ${authString}`,
  },
  body: JSON.stringify({
    style: "default",
    observer: {
      latitude: 30.04440,
      longitude: 45.23570,
      date: "2021-12-10",
    },
    view: {
      type: "area",
      parameters: {
        position: {
          equatorial: {
            rightAscension: 14.83,
            declination: -10.23,
          },
        },
        zoom: 3, //optional
      },
    },
  }),
})

If anything inside view changes I get an updated image but if I change any observer prop (latitude, longitude or date) I get the new URL but the image stays exactly the same...

astroanu commented 1 year ago

Thanks for reporting. Seems to be a bug around rendering. We'll take a look.

astroanu commented 10 months ago

Closing as this should be fixed by now.

thibauth01 commented 1 week ago

@astroanu I seem to have the same problem now. When I change the latitude, longitude or date, the image always stays the same.