WildMeOrg / Wildbook

Wild Me's first product, Wildbook supports researchers by allowing collaboration across the globe and automation of photo ID matching
https://www.wildme.org/wildbook.html
GNU General Public License v2.0
103 stars 64 forks source link

Admin customization of encounter search map #803

Open TanyaStere42 opened 3 days ago

TanyaStere42 commented 3 days ago

Feature description and context

The map focus settings are used broadly through the site and shape user experience. As site admins onboard new users, they may need to adjust the default map position. As part of the modernization efforts for the site, we need to replace configuration properties with admin-accessible tools in the UI so site admins are not required to dig into configuration files.

Note: can be finished in place of #802

Feature sign-off requirements

Design

Note: If languages controls do not already exist (see #704), do not implement tab structure. design is an approximation; use wildbook's custom components or standard bootstrap components.

image

naknomum commented 3 days ago

proposal: use this as opportunity to initiate very basic db-based configuration/settings class, and store values there instead. (and this would feed into values shown via api site-settings, for FE usage.)

further, existing jsp code could use these values as well by refactoring the methods called such as getCenterLat/Lon():

                let centerLat = '<%=CommonConfiguration.getCenterLat(context)%>';
                let centerLong = '<%=CommonConfiguration.getCenterLong(context)%>';