GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
15 stars 109 forks source link

After saving a resource the resource information must be refreshed #1857

Closed giohappy closed 2 months ago

giohappy commented 2 months ago

When a resource is saved (PATCH request) the resource information is not refreshed. This can bring inconsistencies between the information available to the client and the current resource attributes after saving. In particular, this affects calculated attributes, like bbox extent.

This inconstancy becomes visible, for example, when the extent of a map is recalculated because its layers have been changed. After saving the map the extent is recalculated on the base of its layers, but the Location tab still shows the old extent.

For safety, the whole resource attributes should be retrieved and updated after any save.