archesproject / arches-collector

GNU Affero General Public License v3.0
3 stars 3 forks source link

Report map doesn't zoom for newly created resources #640

Open chrabyrd opened 3 years ago

chrabyrd commented 3 years ago

Describe the bug

In the report screen, for newly created resource instance, the map remains in the default zoom.

To Reproduce Steps to reproduce the behavior:

  1. Create a new resource instance that has a geojson collection widget
  2. Create a new feature ( geometry )
  3. Immediately navigate to the report screen
  4. Notice the map hasn't zoomed to the bounds of the featureCollection
  5. Back out to the main application screen
  6. Navigate back to the report view
  7. Notice the map has now zoomed appropriately

Expected behavior A clear and concise description of what you expected to happen.

In the report view, the map should always zoom to the bounds of the featureCollection if it exists.