ccloquet / Quickgrid

On the field, quickly know where you are wrt to a grid or a path (eg : I am in grid B4, or I am at kilometer 2,3)
https://grid.my-poppy.eu
MIT License
4 stars 0 forks source link
gelocation grid-squares parcours simple standing

quickgrid

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 :

Screenshot

where

Usage :

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

Credits :

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;