DigitalCommons / land-explorer-back-end

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

LX-172 autosave #34

Closed rogup closed 1 year ago

rogup commented 1 year ago

Back-end changes for https://github.com/DigitalCommons/land-explorer-front-end/pull/190 Closes https://github.com/DigitalCommons/land-explorer-front-end/issues/172

These changes remove the drawingsInDb flag, and instead just find all objects that are saved in the map's data JSON and those in the markers, polygons, linestrings DB tables, since the migration code prevents them from being duplicated. This means that we won't lose objects that are copied to a map before its objects are migrated to the DB tables.

We also make new API routes for saving a specific map's lng-lat position and zoom level.