geodesymiami / insarmaps

3 stars 0 forks source link

should colorscale update be in URL ? #49

Closed falkamelung closed 3 years ago

falkamelung commented 3 years ago

This is in this issue https://github.com/geodesymiami/insarmaps/issues/37#issuecomment-754720466 but I am making it its own issue for clarity.

The command below first has a [-2, 2] scale and then switches to [-15, 15]. Is it OK that the update does not show up in the URL?

https://insarmaps.miami.edu/start/19.3128/-155.0448/7.7064?flyToDatasetCenter=false&startDataset=S1_IW12_087_0527_0531_20180902_XXXXXXXX
stackTom commented 3 years ago

The current logic is that if a min scale and max scale are supplied in the URL, we don't do this slow call to the database to calculate min and max etc etc. So, I suppose the best course of action is to include the color scale update in the URL. That way, according to our current logic, if a user reloads the same dataset, it won't go through the slow update scale database call yet will have the correct colors of the previous database call.

stackTom commented 3 years ago

done