When using a gridded printed map on the field, this quick app tells you the grid square or the location in kilometers on a parcours where you are currently standing.
Demo :
where
Usage :
to create the grid / parcours :
to know your current location :
Where
The graphical user interface only allow to produces a grid in TMercator, with letters in x and figures in y (from top to bottom). But you may tweak the link afterwards.
Full example : https://grid.my-poppy.eu/?31370,0,100,0,50.45019,5.95576,18,27,0,0
To use it operationnally
the x0, y0,delta,bearing should correspond to your printed map
x0,y0,delta,bearing,X0,Y0,Nx,Ny are generated by drawing a rectangle using [url]
you could send the link to your personnel by SMS/Whatsapp/...
or display it as a QR code
ideally, they can store the link on their smartphone home screen to use it when they need it
Enjoy !
Credits :
download2.js
Contact: info@my-poppy.eu
Presented @ FOSS4G-FR 15-17/5/2018 @ ENSG Paris
in Leaflet, modification of the toGeoJSON function, to also export the names of the elements :
LH.toGeoJSON = function (precision) {
...
this.eachLayer(function (layer) {
if (layer.toGeoJSON) {
var json = layer.toGeoJSON(precision);
/*THIS SHOULD BE ADDED ->*/ if (layer.options.name != null) if (layer.options.name != '') json.properties.name = layer.options.name
...
to patch the minified code :
var o=i.toGeoJSON(t);
should be replaced by
var o=i.toGeoJSON(t); if(i.options.name!=null) if(i.options.name!='') o.properties.name=i.options.name;