TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.16k stars 359 forks source link

"ideal zoom" enhancement #5963

Open AnaBelgun opened 2 years ago

AnaBelgun commented 2 years ago

There are examples where 'ideal zoom' is not 'ideal'. For example, when the users clicks on 'ideal zoom' the data is still not visible, because zoom level is not close enough.

User feedback: "As a User, the ideal zoom must zoom to the level at which as dataset will visualise in the map. Where datasets have a closer zoom level that the ideal zoom, the user doesn't intuitively know to zoom in closer to find the data, they think its unable to load"

To test:

Ideal Zoom: image

Zoomed in at 20m

image

zoran995 commented 2 years ago

Ouch, this one is not easy, currently, I would suggest using min and max scale denominator (#5735) as it will give information to user that he needs to zoom in closer to see the dataset, as it is implemented for this use case.

It's possible to add an option zoom to the visible range but we still cannot guarantee that user will see dataset (unless config has a point specified for this dataset). Esri has something like this (or had haven't used it for some time) and it works terrible for sparse datasets, usually, I end on the area that I didn't even look in the first place and there is no data (center of bbox for Republic of Srpska is outside of territory which usually causes that there is no data visible).

It is certainly not impossible to implement it but it will be a little crazy to make it intuitive and usable for end-users. Some of the issues that this can raise