sitmun / sitmun-backend-core

REST API, back-end business logic and access to DB.
European Union Public License 1.2
0 stars 4 forks source link

Initial extent parameters. #189

Open RicardCots opened 1 month ago

RicardCots commented 1 month ago

Is your feature request related to a problem? Please describe. When configuring a territory in the admin app the admin user has the option to set three settings that later on are not used for the viewer: Default zoom and center coords x and y

As it is configured imagen

As it is returned for the API imagen

Describe the solution you'd like When those parameters are defined the SITMUN viewer should take this into account and set the initial extent according to the zoom and center defined.

Describe alternatives you've considered API SITNA has not the option to set those parameters when defining the map, so it must to be the API SITMUN that calculates it and send the JSON to viewer with de calculated extension according to zoom level and center.... if this is possible (because it may be afected for the screen resolution of every user...)

fjlopez commented 1 month ago

If the X and Y coordinates have a well-defined meaning in a SITMUN deployment (e.g., consistently pointing to the council seat), they can be used with zoomToMarkers from API SITNA to display a specific location, such as the council seat. A similar feature was previously requested by the Diputació de Lleida.

The zoom functionality is not supported by the API SITNA because the extent option is always preferred.

fjlopez commented 1 week ago