terraframe / geoprism-registry

GeoPrism Registry is a system for curating interlinked data through time. It's the first framework implementing the Common Geo-Registry specification.
https://geoprismregistry.com/
GNU Lesser General Public License v3.0
18 stars 5 forks source link

Map in the editing/viewing geo-object modal not zooming to the "study" area when no geometry for the selected date #673

Open SteeveEbener opened 2 years ago

SteeveEbener commented 2 years ago

List the CGR information

Describe the bug (clear and concise) When opening the editing/viewing geo-object modal for a geo-object that does not have a geometry for the given date the map is not zoomed to the area covered by the other geo-object of the same type (see screenshot below).

You have to scroll and zoom to the area to be able to start the checking or editing work.

To Reproduce As a MOha RA/RM/RC in staging: 1 Go to the lists module'

  1. Open the exploratory County master list (MOHA) for 2007-04-20
  2. Open the editing/viewing geo-object modal for the Eldalonde geo-object
  3. See the error the map shows what we have in the screenshot

Expected behavior (clear and concise) The map zoom to the area covered by the other geo-object of the same type

Screenshots image

Desktop (please complete the following information):

Additional context (if any)

Additional information and exchange in ticket #906

justinlewis commented 2 years ago

@steeveebener If I understand correctly you're asking for functionality that zooms to the extend of other data in the Geo-Object Type when the current Geo-Object has no geometries?

To do this I think the best option is to store bounds of all the data in the Geo-Object Type so that we're zooming to an area and zoom level that's most likely to cover the new geometry. This bounding box would also need to be kept synchronized in some way. Does this sound like what you're looking for?

SteeveEbener commented 2 years ago

@justinlewis . Yes, this corresponds to what I was looking for. Thanks

justinlewis commented 2 years ago

It's possible to configure an instance to load on a specific area. This can be any valid map bounds. The intent is to set this as the general working area for an instance (e.g. a country boundary). Would this address this issue?

justinlewis commented 2 years ago

It's possible to configure an instance to load on a specific area. This can be any valid map bounds. The intent is to set this as the general working area for an instance (e.g. a country boundary). Would this address this issue?

SteeveEbener commented 2 years ago

Yes, this would be great