Refacto of Tiles handling and simplified a bit file naming for tiles/params.By the way, fixes #297
THIS COMMIT BREAKS FILE LAYOUT AND REQUIRES MIGRATION (SEE BELLOW).
To migrate data :
cd tilesfind . '*.jpg' -exec rename 's/[^\/]*_(([0-9]{3}_){2}([0-9]{3}))/$1/' {} \;...
do not display ref_points and panorama further than 25km from the current one (tunable in constant)
Use propper RefPoint::get_all() instead of requiring ref_points.local.php
moved the ref_points path to a constant.
Bugfix: no ref_points was available when there was only one in ref_points.local.php
some request input checking/sanitization
typo
propper typing of params
Moved error handling and autoloading outside of the utils::init() (__autoload was not working actuallly)
Moved some treatements to functions for better understanding.
make use of constants
has_params and get_all for site_point
Can now Load the pano.js in the view_cap.php
moved forms to separate files to put panorama.php to diet and make it more readable
- Moved ref_points.php to something less toulouse-specific ;-)by default : no ref points, but the ability to define its own listor to use one of the files from ref_points folder.- Fixed the UI if the ref_points list is empty.
amélioration mineure
permet la visualisation d'axes horizontaux via OSM
Amélioration du style et apports de nouveaux points de référence.
amélioration cosmétiques et remise à jour de la liste des fichiers.
remise en forme du travail de Victor Pongnian suit à son stageIl reste pas mal de cosmétique à revoir mais le système devrait déjà être utilisable dans l'état.
Version réaliée pour la sage de Victor Pongnian
Première version enregistrée