3liz / lizmap-javascript-scripts

Scripts for Lizmap Web Client
Mozilla Public License 2.0
18 stars 39 forks source link

update the GPX Script for Lizmap 3.4? #37

Open sergiuspinheiro opened 3 years ago

sergiuspinheiro commented 3 years ago

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

noirot commented 3 years ago

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

gerald2545 commented 3 years ago

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 commented 3 years ago

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