geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
512 stars 398 forks source link

Custom scale - Smartphone abnormal zoom #8296

Open valeriodeluca opened 2 years ago

valeriodeluca commented 2 years ago

Hi everybody, I tried to set a custom scale option like this:

"map":{"center":{"x":12.45376416820888,"y":41.90354781511997,"crs":"EPSG:4326"},"maxExtent":[-20037508.34,-20037508.34,20037508.34,20037508.34],"projection":"EPSG:3857","units":"m","zoom":3,"mapOptions":{"view":{"scales":[500000,250000,150000,100000,50000,25000,10000,5000,2000,1000],"resolutions":[84666.66666666688,42333.33333333344,21166.66666666672,10583.33333333336,5291.66666666668,2645.83333333334,1322.91666666667,661.458333333335,529.166666666668,396.875000000001,264.583333333334,132.291666666667,66.1458333333335,39.6875000000001,26.4583333333334,13.2291666666667,6.61458333333335,3.96875000000001,2.64583333333334,1.32291666666667,0.661458333333335]}}

In smartphone view it generates an anomaly with respect to the correct behavior of the zoom function.

It seems as if the map reaches full zoom and then freezes and the only way to restore the map is to reload the browser page.

From the smatphone view simulated with a browser, the zoom anomaly does not occur. It only appears on real smartphones.

I encountered the same error on Android and IOS and on different browsers from smartphones.

I ask you if the error has already occurred to you or if you can replicate the error with the code I sent you.

Thanks for the help, Valerio

MV88 commented 2 years ago

@valeriodeluca I've tried to reproduce it using master branch but I think the app works fine on my smartphone.

on which version are you testing this? can you create a map reachable for us to use for testing? Alternatively can you elaborate a bit more the steps used to reproduce this, maybe with a video?