geodesymiami / insarmaps

3 stars 0 forks source link

Velocity limits mismatch between URL and display for temporal zoom-in #52

Closed falkamelung closed 1 year ago

falkamelung commented 2 years ago

Bug: The image below shows [0 40] but the URL has [0 20]. Maybe that occurs when a time period is selected (I have to dig into this a bit more)

https://insarmaps.miami.edu/start/19.4259/-155.5256/11.9681?flyToDatasetCenter=false&startDataset=S1_IW12_087_0527_0531_20180908_XXXXXXXX&pointLat=19.45602&pointLon=-155.58018&minScale=10&maxScale=-10&startDate=20210101&endDate=20210308&colorscale=velocity
image

On the other hand, if I give [0 40] it displays it right, but it shows [-10 10].

https://insarmaps.miami.edu/start/19.4259/-155.5256/11.9681?flyToDatasetCenter=false&startDataset=S1_IW12_087_0527_0531_20180908_XXXXXXXX&pointLat=19.45602&pointLon=-155.58018&minScale=0&maxScale=40&startDate=20210101&endDate=20210308&colorscale=velocity
image
falkamelung commented 2 years ago

This problem has a n umber of implications. In this case I ended up with [5 5] colorscale although it is supposed to be [-5 5]. [5 5] displays well but you can't change the colorlimits by clicking.

https://insarmaps.miami.edu/start/19.4527/-155.5597/12.2700?flyToDatasetCenter=false&startDataset=S1_IW12_087_0527_0531_20141116_20210706&pointLat=19.44646&pointLon=-155.57992&minScale=5&maxScale=5&startDate=20141116&endDate=20210706
stackTom commented 1 year ago

There was a bug with updating the url minScale and maxScale. I've fixed this in: https://github.com/geodesymiami/insarmaps/commit/73465539a39d1a09345400530f7abe7fcc11f37d

Closing for now. If you see the issue again, please re-open, but I believe it is fixed.