lizmap-javascript-scripts icon indicating copy to clipboard operation
lizmap-javascript-scripts copied to clipboard

update the GPX Script for Lizmap 3.4?

Open sergiuspinheiro opened this issue 4 years ago • 3 comments

Hello Are there any plans to update the GPX Script for Lizmap 3.4? thank you

sergiuspinheiro avatar Feb 02 '21 10:02 sergiuspinheiro

Hello, I'm also interrested by this update ... Anybody plan to do it? Thanks

noirot avatar May 07 '21 11:05 noirot

Hi,

I managed to make it work (at least import a gpx file) which is well displayed.

I thought I could use the created geometry with a new record in postgis...but when clicking on the save button of my form, I get the error message "Vous ne pouvez pas enregistrer et objet sans géométrie. Veuille la dessiner sur la carte.
image

Any idea?

Thank you for your help

PS : to make this javascript work, I added the file content of the GPX.js (https://github.com/openlayers/openlayers/releases/tag/release-2.13) in the openLayers file of lizmap, preceded with if(!OpenLayers.Format.GPX){OpenLayers.Format.GPX={};}. I will try it a bit more before submitting a PR

gerald2545 avatar May 15 '21 18:05 gerald2545

hum......the draw functionality allows to import à gpx file....so this javascipt file is no longer useful image

but same problem, I cannot use the imported geometry to save with my postgis record.... I'll create an issue in LWC

gerald2545 avatar May 15 '21 21:05 gerald2545